Revisión | 3418d4a5e4513667055cf8650e4abe7c07b1833f (tree) |
---|---|
Tiempo | 2024-04-13 14:37:05 |
Autor | matsuand <30614168+matsuand@user...> |
Commiter | matsuand |
Update llvm-18.1.2.
@@ -3,10 +3,10 @@ | ||
3 | 3 | . ./_blfsset.sh |
4 | 4 | |
5 | 5 | 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 | |
10 | 10 | TARGET=$APPNAME-$VER |
11 | 11 | TARGETBALL=$DLD/$TARGET.src.tar.xz |
12 | 12 | TARGETDIR=$TARGET.src |
@@ -38,9 +38,9 @@ cd $TARGETDIR | ||
38 | 38 | tar -xf $DLD/llvm-cmake-${VER_MAJOR}.src.tar.xz || exit 1 |
39 | 39 | tar -xf $DLD/llvm-third-party-${VER_MAJOR}.src.tar.xz || exit 1 |
40 | 40 | |
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@" \ | |
42 | 42 | -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@" \ | |
44 | 44 | -i cmake/modules/HandleLLVMOptions.cmake |
45 | 45 | |
46 | 46 | 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 | ||
48 | 48 | |
49 | 49 | tar -xf $DLD/compiler-rt-${VER_CRT}.src.tar.xz -C projects || exit 1 |
50 | 50 | 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 | |
53 | 51 | |
54 | 52 | grep -rl '#!.*python' | xargs sed -i '1s/python$/python3/' |
55 | 53 | |
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 | |
62 | 57 | |
63 | 58 | mkdir build |
64 | 59 | cd build |
@@ -73,8 +68,10 @@ cmake -DCMAKE_INSTALL_PREFIX=/usr \ | ||
73 | 68 | -DLLVM_ENABLE_RTTI=ON \ |
74 | 69 | -DLLVM_TARGETS_TO_BUILD="host;AMDGPU" \ |
75 | 70 | -DLLVM_BINUTILS_INCDIR=/usr/include \ |
71 | + -DLLVM_VERSION_SUFFIX= \ | |
76 | 72 | -DLLVM_INCLUDE_BENCHMARKS=OFF \ |
77 | 73 | -DCLANG_DEFAULT_PIE_ON_LINUX=ON \ |
74 | + -DCLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang \ | |
78 | 75 | -Wno-dev -G Ninja .. \ |
79 | 76 | 1> $LOG/$TARGET.1_conf.log 2>&1 || exit 1 |
80 | 77 |