]> git.pld-linux.org Git - packages/llvm.git/commitdiff
strip abi part in multilib clang_rt target dir names on x32
authorJan Palus <atler@pld-linux.org>
Sun, 16 Oct 2022 20:34:20 +0000 (22:34 +0200)
committerJan Palus <atler@pld-linux.org>
Sun, 16 Oct 2022 20:34:20 +0000 (22:34 +0200)
x32-gcc-toolchain.patch

index b551b903b51d5276203d202c2555f8c88a8990fe..4087f7a25bc1ed867539f6eb6f57a7ebab469312 100644 (file)
      }
      BiarchLibDirs.append(begin(X86LibDirs), end(X86LibDirs));
      BiarchTripleAliases.append(begin(X86Triples), end(X86Triples));
      }
      BiarchLibDirs.append(begin(X86LibDirs), end(X86LibDirs));
      BiarchTripleAliases.append(begin(X86Triples), end(X86Triples));
+--- 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})
+   if(COMPILER_RT_DEFAULT_TARGET_ONLY)
+     # Use exact spelling when building only for the target specified to CMake.
+     set(target "${COMPILER_RT_DEFAULT_TARGET_TRIPLE}")
This page took 0.075646 seconds and 4 git commands to generate.