diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-12-03 12:26:57 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-12-03 12:26:57 +0300 |
commit | f88e0b87774e37e0e74c4acadbab2ce1c06f247e (patch) | |
tree | 765be9facf9c5034817ea8f1747fccbcdb4d9e1c | |
parent | b7dd61a514f2be4191a017d77bb0668044b72f76 (diff) |
Suppress MSVC warnings at project level
-rw-r--r-- | build/root.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build index 6081a66..04eadad 100644 --- a/build/root.build +++ b/build/root.build @@ -12,3 +12,9 @@ if! $cxx.features.modules hxx{*}: extension = hxx mxx{*}: extension = mxx cxx{*}: extension = cxx + +if ($cxx.class == 'msvc') +{ + cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS + cxx.coptions += /wd4251 /wd4275 /wd4800 +} |