diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-26 17:24:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-26 18:04:22 +0200 |
commit | 4a23b4cdf3102a8fef8ac6ebd8a884cd613c28ee (patch) | |
tree | 9fdd028cddde76ea4037c55fd7430950a0d05dd5 /libbuild2/context.cxx | |
parent | 4177d70e63893d0a2c76beb9166ebbf79c4697a0 (diff) |
Implement auto-import of development build2 build
Diffstat (limited to 'libbuild2/context.cxx')
-rw-r--r-- | libbuild2/context.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbuild2/context.cxx b/libbuild2/context.cxx index e35f308..a715c59 100644 --- a/libbuild2/context.cxx +++ b/libbuild2/context.cxx @@ -124,6 +124,16 @@ namespace build2 path (argv0.recall_string ()), path (argv0.effect)); + // Build system import path for modules. We only set it for the + // development build. + // + var_import_build2 = &vp.insert<abs_dir_path> ("import.build2"); + +#ifndef BUILD2_BOOTSTRAP + if (!build_installed) + gs.assign (var_import_build2) = abs_dir_path (BUILD2_IMPORT_PATH); +#endif + // Build system verbosity level. // gs.assign<uint64_t> ("build.verbosity") = verb; |