diff options
-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"); |