From b3859f32b9b113ad9053c0feb7c5802923ca7b076854461f511bf8be2fb8a872 Mon Sep 17 00:00:00 2001 From: Aaron Puchert Date: Thu, 7 Mar 2024 01:09:55 +0000 Subject: [PATCH] - More consistent placement of -DPython3_EXECUTABLE. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm17?expand=0&rev=24 --- llvm17.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm17.spec b/llvm17.spec index 1b44df3..ba65647 100644 --- a/llvm17.spec +++ b/llvm17.spec @@ -967,7 +967,6 @@ avail_mem=$(awk '/MemAvailable/ { print $2 }' /proc/meminfo) %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_SHARED_LIBS:BOOL=OFF \ - -DPython3_EXECUTABLE=%{_bindir}/python3 \ -DLLVM_HOST_TRIPLE=%{host_triple} \ -DLLVM_BUILD_LLVM_DYLIB:BOOL=OFF \ -DLLVM_LINK_LLVM_DYLIB:BOOL=OFF \ @@ -975,6 +974,7 @@ avail_mem=$(awk '/MemAvailable/ { print $2 }' /proc/meminfo) -DLLVM_PARALLEL_LINK_JOBS="$max_link_jobs" \ -DENABLE_LINKER_BUILD_ID=ON \ -DLLVM_BINUTILS_INCDIR=%{_includedir} \ + -DPython3_EXECUTABLE=%{_bindir}/python3 \ -DLLVM_BUILD_TOOLS:BOOL=OFF \ -DLLVM_BUILD_UTILS:BOOL=OFF \ -DLLVM_BUILD_EXAMPLES:BOOL=OFF \ @@ -1050,7 +1050,6 @@ export LD_LIBRARY_PATH=%{sourcedir}/build/%{_lib} %cmake \ -DCMAKE_C_COMPILER="%{sourcedir}/stage1/bin/clang" \ -DCMAKE_CXX_COMPILER="%{sourcedir}/stage1/bin/clang++" \ - -DPython3_EXECUTABLE=%{_bindir}/python3 \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DLLVM_HOST_TRIPLE=%{host_triple} \ -DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \ @@ -1073,6 +1072,7 @@ export LD_LIBRARY_PATH=%{sourcedir}/build/%{_lib} -DLLVM_ENABLE_RTTI:BOOL=ON \ -DLLVM_ENABLE_PIC=ON \ -DLLVM_BINUTILS_INCDIR=%{_includedir} \ + -DPython3_EXECUTABLE=%{_bindir}/python3 \ -DLLVM_ENABLE_ZSTD:BOOL=OFF \ -DLLVM_TARGETS_TO_BUILD=%{llvm_targets} \ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=%{llvm_experimental_targets} \