aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cxx/init.cxx')
-rw-r--r--build2/cxx/init.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/build2/cxx/init.cxx b/build2/cxx/init.cxx
index 7f099cf..6c8cbad 100644
--- a/build2/cxx/init.cxx
+++ b/build2/cxx/init.cxx
@@ -355,7 +355,17 @@ namespace build2
v["cc.system"],
v["cc.module_name"],
v["cc.reprocess"],
- v["cc.preprocessed"],
+
+ // Ability to indicate that source is already (partially)
+ // preprocessed. Valid values are 'none' (not preprocessed),
+ // 'includes' (no #include directives in source), 'modules' (as above
+ // plus no module declaration depends on preprocessor, e.g., #ifdef,
+ // etc), and 'all' (the source is fully preprocessed). Note that for
+ // 'all' the source can still contain comments and line
+ // continuations. Note also that for some compilers (e.g., VC) there
+ // is no way to signal that the source is already preprocessed.
+ //
+ v.insert<string> ("cxx.preprocessed"),
v.insert<string> ("cxx.std", variable_visibility::project),