• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión3418d4a5e4513667055cf8650e4abe7c07b1833f (tree)
Tiempo2024-04-13 14:37:05
Autormatsuand <30614168+matsuand@user...>
Commitermatsuand

Log Message

Update llvm-18.1.2.

Cambiar Resumen

Diferencia incremental

--- a/BLFS/llvm.sh
+++ b/BLFS/llvm.sh
@@ -3,10 +3,10 @@
33 . ./_blfsset.sh
44
55 APPNAME=llvm
6-VER=17.0.1
7-VER_MAJOR=17
8-VER_CLANG=17.0.1
9-VER_CRT=17.0.1
6+VER=18.1.2
7+VER_MAJOR=18
8+VER_CLANG=18.1.2
9+VER_CRT=18.1.2
1010 TARGET=$APPNAME-$VER
1111 TARGETBALL=$DLD/$TARGET.src.tar.xz
1212 TARGETDIR=$TARGET.src
@@ -38,9 +38,9 @@ cd $TARGETDIR
3838 tar -xf $DLD/llvm-cmake-${VER_MAJOR}.src.tar.xz || exit 1
3939 tar -xf $DLD/llvm-third-party-${VER_MAJOR}.src.tar.xz || exit 1
4040
41-sed '/LLVM_COMMON_CMAKE_UTILS/s@../cmake@llvm-cmake-17.src@' \
41+sed "/LLVM_COMMON_CMAKE_UTILS/s@../cmake@llvm-cmake-${VER_MAJOR}.src@" \
4242 -i CMakeLists.txt
43-sed '/LLVM_THIRD_PARTY_DIR/s@../third-party@llvm-third-party-17.src@' \
43+sed "/LLVM_THIRD_PARTY_DIR/s@../third-party@llvm-third-party-${VER_MAJOR}.src@" \
4444 -i cmake/modules/HandleLLVMOptions.cmake
4545
4646 tar -xf $DLD/clang-${VER_CLANG}.src.tar.xz -C tools || exit 1
@@ -48,17 +48,12 @@ mv tools/clang-${VER_CLANG}.src tools/clang
4848
4949 tar -xf $DLD/compiler-rt-${VER_CRT}.src.tar.xz -C projects || exit 1
5050 mv projects/compiler-rt-${VER_CRT}.src projects/compiler-rt
51-sed '/^set(LLVM_COMMON_CMAKE_UTILS/d' \
52- -i projects/compiler-rt/CMakeLists.txt
5351
5452 grep -rl '#!.*python' | xargs sed -i '1s/python$/python3/'
5553
56-Patching
57-patch -Np2 -d tools/clang <$DLD/clang-${VER_MAJOR}-enable_default_ssp-1.patch \
58- 1> $LOG/$TARGET.0_patch.log 2>&1 || exit 1
59-
60-sed 's/clang_dfsan/& -fno-stack-protector/' \
61- -i projects/compiler-rt/test/dfsan/origin_unaligned_memtrans.c
54+#Patching
55+#patch -Np2 -d tools/clang <$DLD/clang-${VER_MAJOR}-enable_default_ssp-1.patch \
56+# 1> $LOG/$TARGET.0_patch.log 2>&1 || exit 1
6257
6358 mkdir build
6459 cd build
@@ -73,8 +68,10 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \
7368 -DLLVM_ENABLE_RTTI=ON \
7469 -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \
7570 -DLLVM_BINUTILS_INCDIR=/usr/include \
71+ -DLLVM_VERSION_SUFFIX= \
7672 -DLLVM_INCLUDE_BENCHMARKS=OFF \
7773 -DCLANG_DEFAULT_PIE_ON_LINUX=ON \
74+ -DCLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang \
7875 -Wno-dev -G Ninja .. \
7976 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1
8077