Skip to content

Commit d9697c2

Browse files
committed
[compiler-rt][CMake] Define HAS_ASM_LSE on Apple if available
Should hopefully fix 33b740f (D93178) failing on bots. Differential Revision: https://reviews.llvm.org/D93198
1 parent 16aa00b commit d9697c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ macro(darwin_add_builtin_libraries)
395395
set(CMAKE_CXX_FLAGS "")
396396
set(CMAKE_ASM_FLAGS "")
397397

398-
set(PROFILE_SOURCES ../profile/InstrProfiling
398+
append_string_if(COMPILER_RT_HAS_ASM_LSE " -DHAS_ASM_LSE" CFLAGS)
399+
400+
set(PROFILE_SOURCES ../profile/InstrProfiling
399401
../profile/InstrProfilingBuffer
400402
../profile/InstrProfilingPlatformDarwin
401403
../profile/InstrProfilingWriter

0 commit comments

Comments
 (0)