aboutsummaryrefslogtreecommitdiffstats
path: root/build/ymake_conf.py
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-20 22:11:12 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-03-20 22:11:12 +0300
commitf2fb45ac1bf02ff7d5a1414a493b5d7040dd3cef (patch)
treec958e0533e46fe19c208a07531f1519956443bca /build/ymake_conf.py
parente7aae615944a704e320aaea56e0cebfa2dcf2959 (diff)
downloadydb-f2fb45ac1bf02ff7d5a1414a493b5d7040dd3cef.tar.gz
intermediate changes
ref:ac69799db1f6e61306109e53aaaa1a48754b4a72
Diffstat (limited to 'build/ymake_conf.py')
-rwxr-xr-xbuild/ymake_conf.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py
index 7b80b39c98..8a165e31ca 100755
--- a/build/ymake_conf.py
+++ b/build/ymake_conf.py
@@ -2386,6 +2386,11 @@ class MSVCCompiler(MSVC, Compiler):
'/DWIN32',
'/D_WIN32',
'/D_WINDOWS',
+ # Define _CRT_*_NO_WARNINGS macros to prevent ucrt from issuing a warning whenever
+ # a POSIX-style function is used instead of the alternative Microsoft suggests as a secure / standard replacement
+ # (e. g. `strncpy()` instead of `strncpy_s()`, `access()` instead of `_access()`)
+ # For details see:
+ # https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-features-in-the-crt
'/D_CRT_SECURE_NO_WARNINGS',
'/D_CRT_NONSTDC_NO_WARNINGS',
# Math constants (such as M_PI, M_E, M_SQRT2) are not defined in standard C / C++