diff options
author | thegeorg <thegeorg@yandex-team.com> | 2024-03-11 23:40:13 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2024-03-11 23:55:51 +0300 |
commit | a7a5cb55a9e0c6aface154c2ad63c6e000e2362a (patch) | |
tree | b191f3eda177b0ab32346da614f034ff3d5f2189 | |
parent | 97178ec137a5fe44721563165cd41a0e4bcf4a98 (diff) | |
download | ydb-a7a5cb55a9e0c6aface154c2ad63c6e000e2362a.tar.gz |
Make debug / release flags look canonical when targeting Windows
`clang-cl -help` says
```
/Ox Deprecated (like /Og /Oi /Ot /Oy /Ob2); use /O2
```
while it still handles `/Ox` as a synonym to `/O2`, I suggest using proper name now.
12ce11d9482f53a045d0829564f50ad1d0d74ac6
-rw-r--r-- | build/conf/compilers/msvc_compiler.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/conf/compilers/msvc_compiler.conf b/build/conf/compilers/msvc_compiler.conf index 9725dece3c..297f206921 100644 --- a/build/conf/compilers/msvc_compiler.conf +++ b/build/conf/compilers/msvc_compiler.conf @@ -34,8 +34,8 @@ otherwise { _FLAGS_DEBUG_RUNTIME=/MTd _FLAGS_RELEASE_RUNTIME=/MT } -CFLAGS_DEBUG=/Ob0 /Od /D_DEBUG $_FLAGS_DEBUG_RUNTIME -CFLAGS_RELEASE=/Ox /Ob2 /Oi /DNDEBUG $_FLAGS_RELEASE_RUNTIME +CFLAGS_DEBUG = /Od /Ob0 /Oi- /D_DEBUG $_FLAGS_DEBUG_RUNTIME +CFLAGS_RELEASE = /O2 /Ob2 /Oi /DNDEBUG $_FLAGS_RELEASE_RUNTIME MASMFLAGS= _MASM_IO=/nologo /c /Fo${output;suf=${OBJECT_SUF}:SRC} ${input;msvs_source:SRC} |