diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-01-30 11:06:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-01-30 11:06:22 +0200 |
commit | f6319b258bb478e19d4a17852a8406e6b1119b87 (patch) | |
tree | 69035ffe5280b76b1eeb948fe115faec4ed6da5e /libbuild2/cc/init.cxx | |
parent | b7beffa3db7103f5b800dd2ee004fe62bb577cd8 (diff) |
Rework include translation support
See the config.cxx.translate_include variable documentation in cxx/init.cxx
for details.
Diffstat (limited to 'libbuild2/cc/init.cxx')
-rw-r--r-- | libbuild2/cc/init.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/cc/init.cxx b/libbuild2/cc/init.cxx index bb50d07..e8b0e6f 100644 --- a/libbuild2/cc/init.cxx +++ b/libbuild2/cc/init.cxx @@ -146,6 +146,14 @@ namespace build2 // vp.insert<string> ("cc.module_name", v_t); + // Importable header marker (normally set via the x.importable alias). + // + // Note that while at first it might seem like a good idea to allow + // setting it on a scope, that will cause translation of inline/template + // includes which is something we definitely don't want. + // + vp.insert<bool> ("cc.importable", v_t); + // Ability to disable using preprocessed output for compilation. // vp.insert<bool> ("config.cc.reprocess"); |