From fc94d68a0389e3e9fc4f143e519f527e1770aa8f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Jul 2017 17:59:44 +0200 Subject: Make distributable with any compiler --- tests/buildfile | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'tests') 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 +} -- cgit v1.1