aboutsummaryrefslogtreecommitdiff
path: root/tests/buildfile
blob: 681ac832677c5b08995f15911bbfea9cb133c3e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# file      : tests/buildfile
# 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
}