|
@@ -1757,7 +1757,7 @@ CPP_PROGRAM_SEM=add_executable $MODDIR $CMAKE_TARGET_NAME ${hide:TARGET} ${hide:
|
|
|
&& vcs_info \
|
|
|
&& target_link_options PRIVATE $LDFLAGS $OBJADDE_LIB $OBJADDE \
|
|
|
&& target_include_directories PRIVATE $_C__INCLUDE_OWNED \
|
|
|
- && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS
|
|
|
+ && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS
|
|
|
### @usage: PROGRAM([progname])
|
|
|
###
|
|
|
### Regular program module.
|
|
@@ -2530,14 +2530,14 @@ CPP_LIBRARY_SEM=add_library ${MODDIR} $CMAKE_TARGET_NAME ${hide:TARGET} ${hide:A
|
|
|
&& consumer_link_library PUBLIC $CMAKE_LINK_TARGET \
|
|
|
&& target_include_directories PUBLIC $_C__INCLUDE_GLOBAL \
|
|
|
&& target_include_directories PRIVATE $_C__INCLUDE_OWNED \
|
|
|
- && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS \
|
|
|
+ && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS \
|
|
|
&& target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW \
|
|
|
&& target_link_options INTERFACE $LDFLAGS_GLOBAL_RAW \
|
|
|
&& add_language C && add_language CXX
|
|
|
CPP_OBJ_LIBRARY_SEM=add_global_library_for ${MODDIR} ${suf=.global:CMAKE_TARGET_NAME} $CMAKE_TARGET_NAME ${hide:GLOBAL_TARGET} ${hide:AUTO_INPUT} \
|
|
|
&& target_include_directories PUBLIC $_C__INCLUDE_GLOBAL \
|
|
|
&& target_include_directories PRIVATE $_C__INCLUDE_OWNED \
|
|
|
- && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS \
|
|
|
+ && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS \
|
|
|
&& target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW
|
|
|
|
|
|
CMAKE_FIND_PKG=
|
|
@@ -2670,7 +2670,7 @@ otherwise {
|
|
|
|
|
|
FAT_OBJECT_SEM=add_fat_object ${MODDIR} ${CMAKE_TARGET_NAME} ${hide:TARGET} ${hide:AUTO_INPUT} ${CMAKE_TARGET_ARTEFACT_RENAME_RULES} \
|
|
|
&& target_include_directories PRIVATE $_C__INCLUDE_OWNED \
|
|
|
- && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS \
|
|
|
+ && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS \
|
|
|
&& set_global_flags FAT_OBJECT_PREFIX ${MODULE_PREFIX} \
|
|
|
&& set_global_flags FAT_OBJECT_SUFFIX ${MODULE_SUFFIX}
|
|
|
|
|
@@ -2732,7 +2732,7 @@ module RECURSIVE_LIBRARY: LIBRARY {
|
|
|
_SONAME=
|
|
|
_EXPORT_SCRIPT_SEM=
|
|
|
macro _ADD_DYNLYB_SEM(Libname) {
|
|
|
- .SEM=add_library ${MODDIR} ${Libname} SHARED ${hide:TARGET} ${hide:AUTO_INPUT} && target_include_directories PUBLIC $_C__INCLUDE_GLOBAL && target_include_directories PRIVATE $_C__INCLUDE_OWNED && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS && target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW && vcs_info $_EXPORT_SCRIPT_SEM
|
|
|
+ .SEM=add_library ${MODDIR} ${Libname} SHARED ${hide:TARGET} ${hide:AUTO_INPUT} && target_include_directories PUBLIC $_C__INCLUDE_GLOBAL && target_include_directories PRIVATE $_C__INCLUDE_OWNED && target_compile_options PRIVATE $USER_CFLAGS $USER_CXXFLAGS $_SEM_EXTRA_CXX_FLAGS && target_compile_options PUBLIC $USER_CFLAGS_GLOBAL_RAW $USER_CXXFLAGS_GLOBAL_RAW && vcs_info $_EXPORT_SCRIPT_SEM
|
|
|
}
|
|
|
CPP_DYN_LIBRARY_SEM=$_ADD_DYNLYB_SEM($CMAKE_TARGET_NAME) $CMAKE_TARGET_ARTEFACT_RENAME_RULES
|
|
|
|
|
@@ -6015,7 +6015,7 @@ otherwise {
|
|
|
# tag:src-processing
|
|
|
macro _SRC("cu", SRC, SRCFLAGS...) {
|
|
|
.CMD=$_SRC_CU_CMD
|
|
|
- .SEM=target_cuda_sources PRIVATE ${input:SRC} ${output;hide;suf=${OBJ_SUF}.o:SRC} && add_language CUDA && set_global_flags CMAKE_CUDA_STANDARD ${NVCC_STD_VER} && target_cuda_flags $CUDA_NVCC_FLAGS && target_cuda_cflags $USER_CXXFLAGS $SRCFLAGS
|
|
|
+ .SEM=target_cuda_sources PRIVATE ${input:SRC} ${output;hide;suf=${OBJ_SUF}.o:SRC} && add_language CUDA && set_global_flags CMAKE_CUDA_STANDARD ${NVCC_STD_VER} && target_cuda_flags $CUDA_NVCC_FLAGS && target_cuda_cflags $USER_CXXFLAGS $SRCFLAGS $_SEM_EXTRA_CXX_FLAGS
|
|
|
.PEERDIR=$_SRC_CU_PEERDIR
|
|
|
}
|
|
|
|
|
@@ -6736,11 +6736,15 @@ macro NO_OPTIMIZE() {
|
|
|
ENABLE(NO_OPTIMIZE)
|
|
|
}
|
|
|
|
|
|
+#TODO(YMAKE-91) read proper compile flags instead of sending explicit flags to semgraph directly
|
|
|
+_SEM_EXTRA_CXX_FLAGS=
|
|
|
+
|
|
|
### @usage: NO_COMPILER_WARNINGS()
|
|
|
### Disable all compiler warnings in the module.
|
|
|
### Priorities: NO_COMPILER_WARNINGS > NO_WERROR > WERROR_MODE > WERROR.
|
|
|
macro NO_COMPILER_WARNINGS() {
|
|
|
ENABLE(NO_COMPILER_WARNINGS)
|
|
|
+ SET(_SEM_EXTRA_CXX_FLAGS -Wno-everything)
|
|
|
}
|
|
|
|
|
|
### @usage: WERROR()
|