aboutsummaryrefslogtreecommitdiff
path: root/tests/build/root.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/build/root.build')
-rw-r--r--tests/build/root.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/build/root.build b/tests/build/root.build
index 4ac2957..e3f0f61 100644
--- a/tests/build/root.build
+++ b/tests/build/root.build
@@ -19,8 +19,11 @@ if ($cxx.class == 'msvc')
# path.
#
import.build2 = [null]
+import! [metadata] b = build2%exe{b}
+
+static = $($b:b.static) # True if testing statically-linked build system.
+shared = (!$static) # For '$shared || exit' idiom.
-import b = build2%exe{b}
testscript{*}: test = $b
# Specify the test target for cross-testing.