aboutsummaryrefslogtreecommitdiff
path: root/tests/buildfile
blob: 8941a9442737d44929ff6ef58b1908637704bb14 (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}: test.output = test.out
}