aboutsummaryrefslogtreecommitdiff
path: root/tests/buildfile
blob: a675f58aff968735311351e07a6e51037a45f7db (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-2018 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
}