diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-06-24 12:01:19 +0200 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-07-01 18:13:55 +0300 |
commit | 977d07a3ae47ef204665d1eda2d642e5064724f3 (patch) | |
tree | 525a3d6421f61ce789b690191d3c30fc09be3517 /build | |
parent | 7161b24963dd9da4d218f92c736b77c35c328a2d (diff) |
Split build system into library and driver
Diffstat (limited to 'build')
-rw-r--r-- | build/export.build | 5 | ||||
-rw-r--r-- | build/root.build | 2 |
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. |