diff options
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; |