aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-07 19:00:50 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-08 16:35:07 +0300
commit01a2c9fa82915628d333b00461c3003fa98fa1a6 (patch)
treecf348420dcdb477272909c8c5bd100a9d02dcafc /build
parent084b18928556640b396d8788145539f5cbd2dbff (diff)
Adapt for building with Clang on Windows
Diffstat (limited to 'build')
-rw-r--r--build/root.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/root.build b/build/root.build
index f89bd4c..3fc83e6 100644
--- a/build/root.build
+++ b/build/root.build
@@ -11,11 +11,11 @@ ixx{*}: extension = ixx
txx{*}: extension = txx
cxx{*}: extension = cxx
-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"