aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-07 20:36:32 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-07 20:36:32 +0300
commitde999032c4e27c64719550aa3c0637bd6db77532 (patch)
tree8c1f45f269b3f63cdc33a11143a59fcd1f903034
parent8bae17304c9d58aa6af611f02eb0a02fccdb00e0 (diff)
Adapt for building with Clang on Windows
-rw-r--r--build/root.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/root.build b/build/root.build
index 875b5ea..eda0cc2 100644
--- a/build/root.build
+++ b/build/root.build
@@ -16,11 +16,11 @@ cxx{*}: extension = cxx
#
h{*}: extension = h
-if ($cxx.class == 'msvc')
-{
+if ($cxx.target.system == 'win32-msvc')
cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+
+if ($cxx.class == 'msvc')
cxx.coptions += /wd4251 /wd4275 /wd4800
-}
cxx.poptions =+ "-I$out_root" "-I$src_root"