summaryrefslogtreecommitdiff
path: root/libexpat/tests/regression/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libexpat/tests/regression/buildfile')
-rw-r--r--libexpat/tests/regression/buildfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/libexpat/tests/regression/buildfile b/libexpat/tests/regression/buildfile
new file mode 100644
index 0000000..f32dabe
--- /dev/null
+++ b/libexpat/tests/regression/buildfile
@@ -0,0 +1,25 @@
+# file : tests/regression/buildfile
+# license : MIT; see accompanying COPYING file
+
+import libs = libexpat%lib{expat}
+
+exe{driver}: {h c}{**} $libs testscript
+
+switch $c.class
+{
+ case 'gcc'
+ {
+ # Disable warnings that pop up with -Wall -Wextra. Upstream doesn't seem
+ # to care about these and it is not easy to disable specific warnings in a
+ # way that works across compilers/version (some -Wno-* options are only
+ # recognized in newer versions).
+ #
+ c.coptions += -Wno-all -Wno-extra
+ }
+ case 'msvc'
+ {
+ # Disable warnings that pop up with /W3.
+ #
+ c.coptions += /wd4267
+ }
+}