diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-10-06 21:31:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-10-06 21:31:15 +0300 |
commit | e93524f3d5204ac9ecc51ecb0546257e10396eb5 (patch) | |
tree | c239d7614401b35f10c2828499f17b174bebb05d | |
parent | acadbbc9d82247c039cea12ea5e86c1f4841fdb9 (diff) |
Adapt for building with Clang on Windows
-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 9ff95cd..926151a 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. |