aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-03 12:20:58 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-12-03 12:20:58 +0300
commit213a905803f069b7d3148cac8591f4046325bad0 (patch)
treec1f1ab1f02881acb4236116c16325fda684ddac1
parenta23a3b17bc82c0b2153dbb05ad289f27d73d621e (diff)
Suppress MSVC warnings at project level
-rw-r--r--build/root.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build
index af83c1d..9b50d89 100644
--- a/build/root.build
+++ b/build/root.build
@@ -11,6 +11,12 @@ ixx{*}: extension = ixx
txx{*}: extension = txx
cxx{*}: extension = cxx
+if ($cxx.class == 'msvc')
+{
+ cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+ cxx.coptions += /wd4251 /wd4275 /wd4800
+}
+
cxx.poptions =+ "-I$out_root" "-I$src_root"
# While we don't have any C sources to compile we do run C tests (bdep-new)