From e93524f3d5204ac9ecc51ecb0546257e10396eb5 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sun, 6 Oct 2019 21:31:15 +0300 Subject: Adapt for building with Clang on Windows --- build/root.build | 6 +++--- 1 file 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. -- cgit v1.1