[PATCH] D119038: [BOLT] Fix bolt_rt_instr for osx build condition
Vladislav Khmelevsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 4 14:34:42 PST 2022
yota9 created this revision.
yota9 added reviewers: maksfb, rafauler, Amir.
Herald added subscribers: ayermolo, mgorny.
yota9 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Check the system name instead of clang compiler to build the osx runtime libraries.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119038
Files:
bolt/runtime/CMakeLists.txt
Index: bolt/runtime/CMakeLists.txt
===================================================================
--- bolt/runtime/CMakeLists.txt
+++ bolt/runtime/CMakeLists.txt
@@ -30,7 +30,7 @@
install(TARGETS bolt_rt_instr DESTINATION lib)
install(TARGETS bolt_rt_hugify DESTINATION lib)
-if (CMAKE_CXX_COMPILER_ID MATCHES ".*Clang.*")
+if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_library(bolt_rt_instr_osx STATIC
instr.cpp
${CMAKE_CURRENT_BINARY_DIR}/config.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119038.406108.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220204/70dc26ef/attachment.bin>
More information about the llvm-commits
mailing list