diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-10-06 21:52:04 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-10-06 21:52:04 +0300 |
commit | e1c3dbd9ccf56ba4427e644017c4ad1309c54912 (patch) | |
tree | 074fdf818089064ab60e096e7dcb2259bf8762ba /build/root.build | |
parent | 2c19d95d48a64b8c7c0d097c7de7afe2f3e4264c (diff) |
Adapt for building with Clang on Windows
Diffstat (limited to 'build/root.build')
-rw-r--r-- | build/root.build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/root.build b/build/root.build index cdbd7ef..ece30fb 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 -} # Load the cli module but only if it's available. This way a distribution # that includes pre-generated files can be built without installing cli. |