[llvm-branch-commits] [compiler-rt] d9697c2 - [compiler-rt][CMake] Define HAS_ASM_LSE on Apple if available

Raul Tambre via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 14 01:30:31 PST 2020


Author: Raul Tambre
Date: 2020-12-14T11:26:24+02:00
New Revision: d9697c2e6b153ac7dc40a69450d9b672f71b1029

URL: https://github.com/llvm/llvm-project/commit/d9697c2e6b153ac7dc40a69450d9b672f71b1029
DIFF: https://github.com/llvm/llvm-project/commit/d9697c2e6b153ac7dc40a69450d9b672f71b1029.diff

LOG: [compiler-rt][CMake] Define HAS_ASM_LSE on Apple if available

Should hopefully fix 33b740f8dc3496237619a7bc6722f23655cb1f94 (D93178) failing on bots.

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

Added: 
    

Modified: 
    compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

Removed: 
    


################################################################################
diff  --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
index f6689c2e79ad..456a8dcda59f 100644
--- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
+++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
@@ -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


        


More information about the llvm-branch-commits mailing list