aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/export.build5
-rw-r--r--build/root.build2
2 files changed, 5 insertions, 2 deletions
diff --git a/build/export.build b/build/export.build
index dc94fa4..8bca42a 100644
--- a/build/export.build
+++ b/build/export.build
@@ -7,4 +7,7 @@ $out_root/
include build2/
}
-export $out_root/build2/exe{b}
+if ($import.target == exe{b})
+ export $out_root/build2/exe{b}
+elif ($import.target == lib{build2})
+ export $out_root/libbuild2/lib{build2}
diff --git a/build/root.build b/build/root.build
index 03e3fe6..9dbad8d 100644
--- a/build/root.build
+++ b/build/root.build
@@ -24,7 +24,7 @@ cxx.poptions =+ "-I$out_root" "-I$src_root"
# While we don't have any C sources to compile, we need to get the C compiler
# path to use as native/default.
#
-using c
+using c.config
# Load the cli module but only if it's available. This way a distribution
# that includes pre-generated files can be built without installing cli.