diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-04 15:11:01 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-04 15:16:13 +0200 |
commit | 56b860217eb00827ba15fc975f71008080af9b65 (patch) | |
tree | 882f39a7c228923363162eb17b6f1ac2db38adb4 /libbuild2/config/host-config.cxx.in | |
parent | b39ce46b80ef5cccc592398e0a74ba8d02742ead (diff) |
Add support for ~host special configuration name in config.import
This is the "default host configuration" that corresponds to how the build
system itself was built. For example:
$ b create: tools/,cc config.import=~host
Diffstat (limited to 'libbuild2/config/host-config.cxx.in')
-rw-r--r-- | libbuild2/config/host-config.cxx.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libbuild2/config/host-config.cxx.in b/libbuild2/config/host-config.cxx.in new file mode 100644 index 0000000..46cd912 --- /dev/null +++ b/libbuild2/config/host-config.cxx.in @@ -0,0 +1,13 @@ +// file : libbuild2/config/host-config.cxx.in -*- C++ -*- +// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +namespace build2 +{ + namespace config + { + // This is a raw string literal, in case you are unfamiliar. + // + extern const char host_config[] = R"###($host_config$)###"; + } +} |