aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-03 12:26:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-12-03 12:26:57 +0300
commitf88e0b87774e37e0e74c4acadbab2ce1c06f247e (patch)
tree765be9facf9c5034817ea8f1747fccbcdb4d9e1c /build/root.build
parentb7dd61a514f2be4191a017d77bb0668044b72f76 (diff)
Suppress MSVC warnings at project level
Diffstat (limited to 'build/root.build')
-rw-r--r--build/root.build6
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
+}