diff options
Diffstat (limited to 'lib/xray/CMakeLists.txt')
-rw-r--r-- | lib/xray/CMakeLists.txt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/xray/CMakeLists.txt b/lib/xray/CMakeLists.txt index dcf0efc72..fd00f3a40 100644 --- a/lib/xray/CMakeLists.txt +++ b/lib/xray/CMakeLists.txt @@ -66,13 +66,7 @@ set(XRAY_COMMON_RUNTIME_OBJECT_LIBS if (APPLE) set(XRAY_LINK_LIBS ${SANITIZER_COMMON_LINK_LIBS}) - set(XRAY_ASM_SOURCES xray_trampoline_x86_64.S) - - if (${CMAKE_GENERATOR} STREQUAL "Xcode") - enable_language(ASM) - else() - set_source_files_properties(${XRAY_ASM_SOURCES} PROPERTIES LANGUAGE C) - endif() + add_asm_sources(XRAY_ASM_SOURCES xray_trampoline_x86_64.S) add_weak_symbols("sanitizer_common" WEAK_SYMBOL_LINK_FLAGS) add_weak_symbols("xray" WEAK_SYMBOL_LINK_FLAGS) |