diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-02-05 14:39:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-02-05 14:39:51 +0200 |
commit | 81545fd04299372f7043469266790957cbdf83c8 (patch) | |
tree | eb792ca7e4bdd269c8e85a91f2354b83b11a1be2 | |
parent | 3f32c45ea6e4406ff6a320e24fccddab467af3e4 (diff) |
Fix bug in reprocessing logic
-rw-r--r-- | build2/cc/compile-rule.cxx | 10 |
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"); |