aboutsummaryrefslogtreecommitdiff
path: root/tests/buildfile
blob: 21298971d53e9b50386bd0c3634d99003e20fba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# file      : tests/buildfile
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

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}: file{test.out}: test.stdout = true
}