From 977d07a3ae47ef204665d1eda2d642e5064724f3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Jun 2019 12:01:19 +0200 Subject: Split build system into library and driver --- build/export.build | 5 ++++- build/root.build | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'build') 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. -- cgit v1.1