aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility-installed.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-26 17:24:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-26 18:04:22 +0200
commit4a23b4cdf3102a8fef8ac6ebd8a884cd613c28ee (patch)
tree9fdd028cddde76ea4037c55fd7430950a0d05dd5 /libbuild2/utility-installed.cxx
parent4177d70e63893d0a2c76beb9166ebbf79c4697a0 (diff)
Implement auto-import of development build2 build
Diffstat (limited to 'libbuild2/utility-installed.cxx')
-rw-r--r--libbuild2/utility-installed.cxx24
1 files changed, 24 insertions, 0 deletions
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 <libbuild2/utility.hxx>
+
+namespace build2
+{
+ struct build_installed_init
+ {
+ build_installed_init ()
+ {
+ build_installed = true;
+ }
+ };
+
+ static build_installed_init init_;
+}
+
+#endif