]> git.pld-linux.org Git - packages/llvm.git/blob - x32-compiler-rt.patch
apply x32 abi stripping patch only when building with rt
[packages/llvm.git] / x32-compiler-rt.patch
1 --- llvm-15.0.2.src/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake.orig       2022-10-04 11:29:17.000000000 +0200
2 +++ llvm-15.0.2.src/projects/compiler-rt/cmake/Modules/CompilerRTUtils.cmake    2022-10-16 22:33:08.014906010 +0200
3 @@ -478,7 +478,8 @@
4  
5  function(get_compiler_rt_target arch variable)
6    string(FIND ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} "-" dash_index)
7 -  string(SUBSTRING ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} ${dash_index} -1 triple_suffix)
8 +  string(SUBSTRING ${COMPILER_RT_DEFAULT_TARGET_TRIPLE} ${dash_index} -1 triple_suffix_with_abi)
9 +  string(REPLACE "-gnux32" "" triple_suffix ${triple_suffix_with_abi})
10    if(COMPILER_RT_DEFAULT_TARGET_ONLY)
11      # Use exact spelling when building only for the target specified to CMake.
12      set(target "${COMPILER_RT_DEFAULT_TARGET_TRIPLE}")
This page took 0.052023 seconds and 3 git commands to generate.