From 00c073819f19e84ced7bd050c60c80ae891ec3e9 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Mon, 27 May 2013 19:00:55 +0200 Subject: [PATCH] Avoid setting C compiler flags on threadasm.S. --- runtime/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt index ba436894..7f9b4dc5 100644 --- a/runtime/CMakeLists.txt +++ b/runtime/CMakeLists.txt @@ -93,9 +93,10 @@ file(GLOB_RECURSE CORE_D_UNIX ${RUNTIME_DIR}/src/core/sys/posix/*.d) file(GLOB_RECURSE CORE_D_OSX ${RUNTIME_DIR}/src/core/sys/osx/*.d) file(GLOB_RECURSE CORE_D_WIN ${RUNTIME_DIR}/src/core/sys/windows/*.d) set(CORE_D_SYS) +set(DCRT_ASM) if(UNIX) list(APPEND CORE_D_SYS ${CORE_D_UNIX}) - list(APPEND DCRT_C ${RUNTIME_DIR}/src/core/threadasm.S) + list(APPEND DCRT_ASM ${RUNTIME_DIR}/src/core/threadasm.S) if(APPLE) list(APPEND CORE_D_SYS ${CORE_D_OSX}) endif() @@ -297,6 +298,7 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix outlist_targ ${GC_O} ${DCRT_O} ${DCRT_C} + ${DCRT_ASM} ${GCCBUILTINS} ) set(lib_targets ${RUNTIME_AIO}${target_suffix})