diff options
| author | dimdim11 <[email protected]> | 2026-05-19 06:46:47 +0300 |
|---|---|---|
| committer | dimdim11 <[email protected]> | 2026-05-19 07:33:38 +0300 |
| commit | 9f85ff287c0afb40d523e9261e77f27cd168cc47 (patch) | |
| tree | 1bc295acab7d28735787c9221812b5e59969d3a5 | |
| parent | c91c17e57f5c9e54db6cee01ff1b7731482db256 (diff) | |
Move user warnings before C/CXX flags
`CLANG_WARNINGS` are designed to be applied to project trees via linter.make.inc files. Moving
them before `CXXFLAGS` in the command pattern adds the ability to override global rules for
exceptional cases in a single ya.make file.
commit_hash:f6091d1dffb66ff2a15eadf71d53104034f04d63
| -rw-r--r-- | build/conf/compilers/gnu_compiler.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/conf/compilers/gnu_compiler.conf b/build/conf/compilers/gnu_compiler.conf index 4aabf662165..38b9b221bf5 100644 --- a/build/conf/compilers/gnu_compiler.conf +++ b/build/conf/compilers/gnu_compiler.conf @@ -277,13 +277,13 @@ _CPP_ARGS_NEW=\ $CXX_COMPILER \ $C_FLAGS_PLATFORM \ $GCC_COMPILE_FLAGS \ + $_USER_WARNINGS_VALUE \ $CXXFLAGS \ $CL_MACRO_INFO \ $CL_MACRO_INFO_DISABLE_CACHE__NO_UID__ \ $_COMPILER_TIME_TRACE_FLAGS \ $EXTRA_OUTPUT \ $SRCFLAGS \ - $_USER_WARNINGS_VALUE \ $_LANG_CFLAGS_VALUE_NEW \ ${input:SRC} \ $TOOLCHAIN_ENV \ @@ -299,6 +299,7 @@ _C_ARGS_NEW=\ $C_COMPILER \ $C_FLAGS_PLATFORM \ $GCC_COMPILE_FLAGS \ + $_USER_WARNINGS_VALUE \ $CFLAGS \ $CL_MACRO_INFO \ $CL_MACRO_INFO_DISABLE_CACHE__NO_UID__ \ @@ -306,7 +307,6 @@ _C_ARGS_NEW=\ $CONLYFLAGS \ $EXTRA_OUTPUT \ $SRCFLAGS \ - $_USER_WARNINGS_VALUE \ ${input:SRC} \ $TOOLCHAIN_ENV \ $CPPYNDEXER_OUTPUT \ |
