Skip to content

Commit 4545594

Browse files
committed
[compiler-rt] Fix building on OpenBSD/amd64
OpenBSD/amd64 does not use multi-lib. Enabling the CET support on amd64 exposed that CMake was using a multi-lib build on amd64.
1 parent 7be3cac commit 4545594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/cmake/base-config-ix.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ macro(test_targets)
213213
if(COMPILER_RT_DEFAULT_TARGET_ONLY)
214214
add_default_target_arch(${COMPILER_RT_DEFAULT_TARGET_ARCH})
215215
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "i[2-6]86|x86|amd64")
216-
if(NOT MSVC)
216+
if(NOT MSVC AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "OpenBSD")
217217
test_target_arch(x86_64 "" "-m64")
218218
test_target_arch(i386 __i386__ "-m32")
219219
else()

0 commit comments

Comments
 (0)