From 9f72ad00a0654bc965ff527615e02fd35596073c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Sep 2020 10:21:37 +0200 Subject: Add note about non-global variable overrides --- build2/b.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2') diff --git a/build2/b.cxx b/build2/b.cxx index 449f1e1..b7e6708 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -1533,6 +1533,11 @@ main (int argc, char* argv[]) // Enter project-wide (as opposed to global) variable overrides. // + // And, yes, this means non-global overrides are not visible during + // bootstrap. If you are wondering why, it's because the project + // boundaries (specifically, amalgamation) are only known after + // bootstrap. + // // The mildly tricky part here is to distinguish the situation where // we are bootstrapping the same project multiple times. The first // override that we set cannot already exist (because the override -- cgit v1.1