llvm22: disable offload compiler-rt/libc runtimes, enable cross built offload
compiler-rt and therefor libc can't be build currently.
This commit is contained in:
@@ -81,10 +81,7 @@ build_options_default="clang clang_tools_extra lld libclc polly lldb
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64*|aarch64*|riscv64*)
|
||||
build_options_default+=" bolt flang"
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default+=" offload"
|
||||
fi
|
||||
build_options_default+=" bolt flang offload"
|
||||
;;
|
||||
armv*)
|
||||
nopie=yes
|
||||
@@ -121,8 +118,8 @@ fi
|
||||
if [ "$build_option_offload" ]; then
|
||||
configure_args+="
|
||||
-DLLVM_RUNTIME_TARGETS=default;amdgcn-amd-amdhsa;nvptx64-nvidia-cuda
|
||||
-DRUNTIMES_nvptx64-nvidia-cuda_LLVM_ENABLE_RUNTIMES=compiler-rt;openmp;libc
|
||||
-DRUNTIMES_amdgcn-amd-amdhsa_LLVM_ENABLE_RUNTIMES=compiler-rt;openmp;libc"
|
||||
-DRUNTIMES_nvptx64-nvidia-cuda_LLVM_ENABLE_RUNTIMES=openmp
|
||||
-DRUNTIMES_amdgcn-amd-amdhsa_LLVM_ENABLE_RUNTIMES=openmp"
|
||||
fi
|
||||
|
||||
subpackages="
|
||||
|
||||
Reference in New Issue
Block a user