diff options
author | svidyuk <svidyuk@yandex-team.ru> | 2022-07-01 09:02:32 +0300 |
---|---|---|
committer | svidyuk <svidyuk@yandex-team.ru> | 2022-07-01 09:02:32 +0300 |
commit | 3c9bba8e28fdf3bca1abbce2a72e27c542c2fac4 (patch) | |
tree | 813632dc1e042d4799bb1a5838d02c781c977218 /build/ymake.core.conf | |
parent | 77cb1379853232a9e0f5540d74d564dc76c9c208 (diff) | |
download | ydb-3c9bba8e28fdf3bca1abbce2a72e27c542c2fac4.tar.gz |
Hackish NO_COMPILER_WARNINGS support
Proper implementation must be done as part of YMAKE-91
YMAKE-91
ref:8b77363477972e5927f43d53d571cd60dd458995
Diffstat (limited to 'build/ymake.core.conf')
-rw-r--r-- | build/ymake.core.conf | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/build/ymake.core.conf b/build/ymake.core.conf index 85507fad94..e47e5c0af8 100644 --- a/build/ymake.core.conf +++ b/build/ymake.core.conf @@ -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() |