aboutsummaryrefslogtreecommitdiff
path: root/tests/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-19 17:59:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-19 17:59:44 +0200
commitfc94d68a0389e3e9fc4f143e519f527e1770aa8f (patch)
tree3e2a61930ef5748444707674b721f596cbbbaddb /tests/buildfile
parenta0f96b95900108705261881b164d779e2db5b824 (diff)
Make distributable with any compiler
Diffstat (limited to 'tests/buildfile')
-rw-r--r--tests/buildfile16
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/buildfile b/tests/buildfile
index 881153e..8941a94 100644
--- a/tests/buildfile
+++ b/tests/buildfile
@@ -2,7 +2,17 @@
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
-import libs = libstd-modules%liba{std-modules}
+if! $cxx.features.modules
+{
+ # List sources as files so that we can prepare a distribution with any
+ # compiler.
+ #
+ ./: cxx{*} file{test.out}
+}
+else
+{
+ import libs = libstd-modules%liba{std-modules}
-exe{driver}: cxx{driver} $libs
-exe{driver}: test.output = test.out
+ exe{driver}: cxx{driver} $libs
+ exe{driver}: test.output = test.out
+}