OSDN Git Service

[compiler-rt][CMake] Define HAS_ASM_LSE on Apple if available
authorRaul Tambre <raul@tambre.ee>
Mon, 14 Dec 2020 09:24:02 +0000 (11:24 +0200)
committerRaul Tambre <raul@tambre.ee>
Mon, 14 Dec 2020 09:26:24 +0000 (11:26 +0200)
Should hopefully fix 33b740f8dc3496237619a7bc6722f23655cb1f94 (D93178) failing on bots.

Differential Revision: https://reviews.llvm.org/D93198

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

index f6689c2..456a8dc 100644 (file)
@@ -395,7 +395,9 @@ macro(darwin_add_builtin_libraries)
   set(CMAKE_CXX_FLAGS "")
   set(CMAKE_ASM_FLAGS "")
 
-  set(PROFILE_SOURCES ../profile/InstrProfiling 
+  append_string_if(COMPILER_RT_HAS_ASM_LSE " -DHAS_ASM_LSE" CFLAGS)
+
+  set(PROFILE_SOURCES ../profile/InstrProfiling
                       ../profile/InstrProfilingBuffer
                       ../profile/InstrProfilingPlatformDarwin
                       ../profile/InstrProfilingWriter