[compiler-rt] [compiler-rt] Fix building on OpenBSD/amd64 (PR #165086)

Oliver Hunt via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 00:02:01 PDT 2025


================
@@ -234,13 +234,29 @@ macro(test_targets)
     elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "powerpc64le|ppc64le")
       test_target_arch(powerpc64le "" "-m64")
     elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "powerpc")
-      test_target_arch(powerpc "" "-m32")
-      test_target_arch(powerpc64 "" "-m64")
+      if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
----------------
ojhunt wrote:

(edit: I had misremembered the x86 path when I wrote the original comment)

https://github.com/llvm/llvm-project/pull/165086


More information about the llvm-commits mailing list