diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-02 15:18:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-08-02 15:18:25 +0200 |
commit | 083743602a998c7618f65fc214bdbc1ed1915e55 (patch) | |
tree | ec8a3441ad232e31591a8b3ec6ecbe459b495b9c /build2/cxx | |
parent | d5ad01a48ac4c7c69995a58a3c198630df904419 (diff) |
Change cc.preprocessed to {c,cxx}.preprocessed
Diffstat (limited to 'build2/cxx')
-rw-r--r-- | build2/cxx/init.cxx | 12 |
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), |