Skip to content

Commit 0567b64

Browse files
committed
[LDC] BOLT runtime: Build libbolt_rt_instr_osx.a on Mac only
As compilation fails otherwise for Azure CI Linux and Android: /usr/include/features.h:424:12: fatal error: 'sys/cdefs.h' file not found
1 parent caee3e8 commit 0567b64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ target_include_directories(bolt_rt_hugify PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
3030
install(TARGETS bolt_rt_instr DESTINATION lib)
3131
install(TARGETS bolt_rt_hugify DESTINATION lib)
3232

33-
if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*")
33+
if (APPLE)
3434
add_library(bolt_rt_instr_osx STATIC
3535
instr.cpp
3636
${CMAKE_CURRENT_BINARY_DIR}/config.h

0 commit comments

Comments
 (0)