From 56b860217eb00827ba15fc975f71008080af9b65 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 4 Nov 2019 15:11:01 +0200 Subject: 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 --- libbuild2/config/host-config.cxx.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 libbuild2/config/host-config.cxx.in (limited to 'libbuild2/config/host-config.cxx.in') 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$)###"; + } +} -- cgit v1.1