aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/install/init.cxx1
-rw-r--r--libbuild2/test/init.cxx4
2 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx
index d2321b5..445f2b1 100644
--- a/libbuild2/install/init.cxx
+++ b/libbuild2/install/init.cxx
@@ -209,6 +209,7 @@ namespace build2
// the trailing directory separator.
//
vp.insert<path> ("install", variable_visibility::target);
+ vp.insert<bool> ("for_install", variable_visibility::prereq);
vp.insert<string> ("install.mode", variable_visibility::project);
vp.insert<bool> ("install.subdirs", variable_visibility::project);
}
diff --git a/libbuild2/test/init.cxx b/libbuild2/test/init.cxx
index 923f047..5681b37 100644
--- a/libbuild2/test/init.cxx
+++ b/libbuild2/test/init.cxx
@@ -97,6 +97,10 @@ namespace build2
vp.insert<target_triplet> ("test.target", variable_visibility::project)
};
+ // This one is used by other modules/rules.
+ //
+ vp.insert<bool> ("for_test", variable_visibility::prereq);
+
// These are only used in testscript.
//
vp.insert<strings> ("test.redirects", variable_visibility::project);