summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-10-07 10:07:14 (GMT)
committerKaren Arutyunov <karen@codesynthesis.com>2019-10-07 10:13:41 (GMT)
commitc2df7ba7e76dd119c7265aed2a296040e9871828 (patch)
treef8b8eed302e86066239753090f9e5a2706bdd231
parentf89375e91431e72076cf5e494410cba5ebde44be (diff)
Adapt libsqlite3 tests and sqlite3 for building with Clang on Windows
-rw-r--r--libsqlite3/test/build/root.build6
-rw-r--r--sqlite3/build/root.build6
2 files changed, 6 insertions, 6 deletions
diff --git a/libsqlite3/test/build/root.build b/libsqlite3/test/build/root.build
index 2db66fd..0e48690 100644
--- a/libsqlite3/test/build/root.build
+++ b/libsqlite3/test/build/root.build
@@ -3,11 +3,11 @@
using c
-if ($c.class == 'msvc')
-{
+if ($c.target.system == 'win32-msvc')
c.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+
+if ($c.class == 'msvc')
c.coptions += /wd4251 /wd4275 /wd4800
-}
# Every exe{} in this subproject is by default a test.
#
diff --git a/sqlite3/build/root.build b/sqlite3/build/root.build
index 678c40e..50eec4a 100644
--- a/sqlite3/build/root.build
+++ b/sqlite3/build/root.build
@@ -6,11 +6,11 @@ using c
h{*}: extension = h
c{*}: extension = c
-if ($c.class == 'msvc')
-{
+if ($c.target.system == 'win32-msvc')
c.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+
+if ($c.class == 'msvc')
c.coptions += /wd4251 /wd4275 /wd4800
-}
# Specify the test target for cross-testing.
#