aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/compile-rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-02-05 14:39:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-02-05 14:39:51 +0200
commit81545fd04299372f7043469266790957cbdf83c8 (patch)
treeeb792ca7e4bdd269c8e85a91f2354b83b11a1be2 /build2/cc/compile-rule.cxx
parent3f32c45ea6e4406ff6a320e24fccddab467af3e4 (diff)
Fix bug in reprocessing logic
Diffstat (limited to 'build2/cc/compile-rule.cxx')
-rw-r--r--build2/cc/compile-rule.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx
index 54c9e08..b5b7cfe 100644
--- a/build2/cc/compile-rule.cxx
+++ b/build2/cc/compile-rule.cxx
@@ -3011,16 +3011,16 @@ namespace build2
args.push_back ("-fPIC");
}
+ args.push_back ("-E");
+
+ args.push_back ("-x");
+ args.push_back (langopt (md));
+
// Options that trigger preprocessing of partially preprocessed
// output are a bit of a compiler-specific voodoo.
//
- args.push_back ("-E");
-
if (ps)
{
- args.push_back ("-x");
- args.push_back (langopt (md));
-
if (ctype == compiler_type::gcc)
{
args.push_back ("-fpreprocessed");