@@ -157,7 +157,7 @@ jl_set_make_flag(UTF8PROC_INC "${UTF8PROC_INC}")
157
157
158
158
if (USE_SYSTEM_LLVM)
159
159
set (LLVM_CONFIG "llvm-config${CMAKE_EXECUTABLE_SUFFIX} " )
160
- push_c_flags(JL_CPP_FLAGS -DSYSTEM_LLVM)
160
+ add_definitions ( -DSYSTEM_LLVM)
161
161
else ()
162
162
set (LLVM_CONFIG "${build_bindir} /llvm-config${CMAKE_EXECUTABLE_SUFFIX} " )
163
163
endif ()
@@ -203,7 +203,7 @@ elseif(USE_SYSTEM_LIBUNWIND)
203
203
endif ()
204
204
elseif (APPLE )
205
205
push_c_flags(LIBUNWIND ${build_libdir} /libosxunwind.a)
206
- push_c_flags(JL_CPP_FLAGS -DLIBOSXUNWIND)
206
+ add_definitions ( -DLIBOSXUNWIND)
207
207
else ()
208
208
push_c_flags(LIBUNWIND ${build_libdir} /libunwind-generic.a
209
209
${build_libdir} /libunwind.a)
@@ -252,38 +252,23 @@ if(WIN32)
252
252
iphlpapi.lib shell32.lib winmm.lib)
253
253
push_c_flags(JL_LD_FLAGS -stack:8388608)
254
254
endif ()
255
- push_c_flags(JL_CPP_FLAGS -D_WIN32_WINNT=0x0502)
255
+ add_definitions ( -D_WIN32_WINNT=0x0502)
256
256
set (UNTRUSTED_SYSTEM_LIBM On CACHE INTERNAL "" FORCE)
257
257
jl_set_option(UNTRUSTED_SYSTEM_LIBM On )
258
258
endif ()
259
259
260
260
if (HAVE_SSP)
261
- push_c_flags(JL_CPP_FLAGS -DHAVE_SSP=1)
261
+ add_definitions ( -DHAVE_SSP=1)
262
262
if (USEGCC)
263
263
push_c_flags(OSLIBS -lssp)
264
264
endif ()
265
265
endif ()
266
266
267
- jl_set_make_flag(OSLIBS "${OSLIBS} " )
268
- jl_set_make_flag(JLDFLAGS "${JL_LD_FLAGS} " )
269
- jl_set_make_flag(JLIBLDFLAGS "${CMAKE_SHARED_LINKER_FLAGS} " )
270
-
271
267
jl_set_make_flag(CC "${CMAKE_C_COMPILER} " )
272
268
jl_set_make_flag(CXX "${CMAKE_CXX_COMPILER} " )
273
269
string (SUBSTRING "${CMAKE_SHARED_LIBRARY_SUFFIX} " 1 -1 SHLIB)
274
270
jl_set_make_flag(SHLIB_EXT "${SHLIB} " )
275
271
276
- jl_set_make_flag(JCFLAGS "${CMAKE_C_FLAGS} " )
277
- jl_set_make_flag(JCXXFLAGS "${CMAKE_CXX_FLAGS} " )
278
-
279
- jl_set_make_flag(JCPPFLAGS "${JL_CPP_FLAGS} " )
280
-
281
- jl_set_make_flag(DEBUGFLAGS "${CMAKE_C_FLAGS_DEBUG} " )
282
- jl_set_make_flag(SHIPFLAGS "${CMAKE_C_FLAGS_RELEASE} " )
283
-
284
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${JL_CPP_FLAGS} " )
285
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${JL_CPP_FLAGS} " )
286
-
287
272
jl_get_make_flags(jl_make_flags)
288
273
289
274
# message("${jl_make_flags}")
0 commit comments