aboutsummaryrefslogtreecommitdiff
path: root/build2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-08-02 15:18:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-08-02 15:18:25 +0200
commit083743602a998c7618f65fc214bdbc1ed1915e55 (patch)
treeec8a3441ad232e31591a8b3ec6ecbe459b495b9c /build2/cc
parentd5ad01a48ac4c7c69995a58a3c198630df904419 (diff)
Change cc.preprocessed to {c,cxx}.preprocessed
Diffstat (limited to 'build2/cc')
-rw-r--r--build2/cc/common.hxx3
-rw-r--r--build2/cc/compile.cxx4
-rw-r--r--build2/cc/init.cxx11
3 files changed, 4 insertions, 14 deletions
diff --git a/build2/cc/common.hxx b/build2/cc/common.hxx
index 66c226c..05877ad 100644
--- a/build2/cc/common.hxx
+++ b/build2/cc/common.hxx
@@ -68,7 +68,8 @@ namespace build2
const variable& c_system; // cc.system
const variable& c_module_name; // cc.module_name
const variable& c_reprocess; // cc.reprocess
- const variable& c_preprocessed; // cc.preprocessed
+
+ const variable& x_preprocessed; // x.preprocessed
const variable& x_std;
diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx
index 9f36e8b..1db827d 100644
--- a/build2/cc/compile.cxx
+++ b/build2/cc/compile.cxx
@@ -802,14 +802,14 @@ namespace build2
// This determines which of the following steps we perform and on
// what source (original or preprocessed).
//
- if (const string* v = cast_null<string> (t[c_preprocessed]))
+ if (const string* v = cast_null<string> (t[x_preprocessed]))
try
{
md.pp = to_preprocessed (*v);
}
catch (const invalid_argument& e)
{
- fail << "invalid " << c_preprocessed.name << " variable value "
+ fail << "invalid " << x_preprocessed.name << " variable value "
<< "for target " << t << ": " << e;
}
diff --git a/build2/cc/init.cxx b/build2/cc/init.cxx
index 8dceda7..733280a 100644
--- a/build2/cc/init.cxx
+++ b/build2/cc/init.cxx
@@ -88,17 +88,6 @@ namespace build2
v.insert<bool> ("config.cc.reprocess", true);
v.insert<bool> ("cc.reprocess");
- // 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> ("cc.preprocessed");
-
return true;
}