X-Git-Url: https://git.tld-linux.org/?p=packages%2Fllvm.git;a=blobdiff_plain;f=x32-compiler-rt.patch;fp=x32-compiler-rt.patch;h=3940b37c6d96fc2f30a7e5a09633b6378b234b1e;hp=0000000000000000000000000000000000000000;hb=9a942b15771786b61f66fd6011b30beab8f4eb8f;hpb=a9f5c8b2c627e29019650a6d45bb0abeeedad1d1 diff --git a/x32-compiler-rt.patch b/x32-compiler-rt.patch new file mode 100644 index 0000000..3940b37 --- /dev/null +++ b/x32-compiler-rt.patch @@ -0,0 +1,12 @@ +--- llvm-15.0.2.src/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake.orig 2022-10-04 11:29:17.000000000 +0200 ++++ llvm-15.0.2.src/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake 2022-10-16 22:33:08.014906010 +0200 +@@ -478,7 +478,8 @@ + + function(get_compiler_rt_target arch variable) + string(FIND ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} "-" dash_index) +- string(SUBSTRING ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} ${dash_index} -1 triple_suffix) ++ string(SUBSTRING ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} ${dash_index} -1 triple_suffix_with_abi) ++ string(REPLACE "-gnux32" "" triple_suffix ${triple_suffix_with_abi}) + string(SUBSTRING ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} 0 ${dash_index} triple_cpu) + if(COMPILER_RT_DEFAULT_TARGET_ONLY) + # Use exact spelling when building only for the target specified to CMake.