aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/cc/compile-rule.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx
index bdfa0f0..94e50cd 100644
--- a/build2/cc/compile-rule.cxx
+++ b/build2/cc/compile-rule.cxx
@@ -4005,6 +4005,8 @@ namespace build2
{
if (ctype == compiler_type::gcc)
{
+ // Note that only these two *plus* -x do the trick.
+ //
args.push_back ("-fpreprocessed");
args.push_back ("-fdirectives-only");
}