From 81545fd04299372f7043469266790957cbdf83c8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Feb 2019 14:39:51 +0200 Subject: Fix bug in reprocessing logic --- build2/cc/compile-rule.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/cc/compile-rule.cxx') 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"); -- cgit v1.1