Add core/threadasm.S to druntime.

This is required for PPC and MIPS targets. Results in an empty
object file on other CPU architectures.
This commit is contained in:
kai
2013-03-30 14:29:58 +01:00
parent 971dc95c74
commit afb673e5a4
2 changed files with 4 additions and 1 deletions

View File

@@ -70,7 +70,9 @@ file(MAKE_DIRECTORY
${PROJECT_BINARY_DIR}/${DMDFE_PATH}
)
if(MSVC)
if(UNIX)
ENABLE_LANGUAGE(ASM)
elseif(MSVC)
ENABLE_LANGUAGE(ASM_MASM)
endif()

View File

@@ -95,6 +95,7 @@ file(GLOB_RECURSE CORE_D_WIN ${RUNTIME_DIR}/src/core/sys/windows/*.d)
set(CORE_D_SYS)
if(UNIX)
list(APPEND CORE_D_SYS ${CORE_D_UNIX})
list(APPEND DCRT_C ${RUNTIME_DIR}/src/core/threadasm.S)
if(APPLE)
list(APPEND CORE_D_SYS ${CORE_D_OSX})
endif()