From 4a23b4cdf3102a8fef8ac6ebd8a884cd613c28ee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 26 Aug 2019 17:24:48 +0200 Subject: Implement auto-import of development build2 build --- libbuild2/utility-installed.cxx | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 libbuild2/utility-installed.cxx (limited to 'libbuild2/utility-installed.cxx') diff --git a/libbuild2/utility-installed.cxx b/libbuild2/utility-installed.cxx new file mode 100644 index 0000000..8fcb271 --- /dev/null +++ b/libbuild2/utility-installed.cxx @@ -0,0 +1,24 @@ +// file : libbuild2/utility-installed.cxx -*- C++ -*- +// copyright : Copyright (c) 2014-2019 Code Synthesis Ltd +// license : MIT; see accompanying LICENSE file + +// Bootstrap build is never condidered installed. +// +#ifndef BUILD2_BOOTSTRAP + +#include + +namespace build2 +{ + struct build_installed_init + { + build_installed_init () + { + build_installed = true; + } + }; + + static build_installed_init init_; +} + +#endif -- cgit v1.1