2017-07-01 02:43:00 +02:00
|
|
|
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
|
|
|
|
index 32795da6..091d344b 100644
|
|
|
|
--- a/runtime/CMakeLists.txt
|
|
|
|
+++ b/runtime/CMakeLists.txt
|
|
|
|
@@ -78,6 +78,7 @@ file(GLOB_RECURSE DRUNTIME_D_GCSTUB ${RUNTIME_DIR}/src/gcstub/*.d)
|
|
|
|
list(REMOVE_ITEM DRUNTIME_D ${DRUNTIME_D_GCSTUB})
|
|
|
|
# remove some modules in rt/
|
|
|
|
list(REMOVE_ITEM DRUNTIME_D
|
|
|
|
+ ${RUNTIME_DIR}/src/core/stdc/tgmath.d
|
|
|
|
${RUNTIME_DIR}/src/rt/alloca.d
|
|
|
|
${RUNTIME_DIR}/src/rt/deh.d
|
|
|
|
${RUNTIME_DIR}/src/rt/deh_win32.d
|
2017-09-13 09:26:46 +02:00
|
|
|
@@ -551,6 +551,10 @@ include(profile-rt/DefineBuildProfileRT.cmake)
|
|
|
|
#
|
2017-07-01 02:43:00 +02:00
|
|
|
# Set up build and install targets
|
|
|
|
#
|
2017-09-13 09:26:46 +02:00
|
|
|
+
|
2017-07-01 02:43:00 +02:00
|
|
|
+set(RT_CFLAGS "@TERMUX_C_FLAGS@")
|
|
|
|
+set(CMAKE_C_COMPILER @TERMUX_C_COMPILER@)
|
|
|
|
+set(CMAKE_ASM_COMPILER ${CMAKE_C_COMPILER})
|
|
|
|
|
2017-09-13 09:26:46 +02:00
|
|
|
if(MULTILIB AND "${TARGET_SYSTEM}" MATCHES "APPLE")
|
2017-07-01 02:43:00 +02:00
|
|
|
# On OS X, build "fat" libraries containing code for both architectures.
|