aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-06-03 11:49:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-06-03 11:49:46 +0200
commit13c05ef5a633d3779e4b1b01a0306755e27c2c4b (patch)
tree04c8cb291940ad3e641bb4add7ece54a7f441493
parent614144c0e54302c93965957a68b150d713d95ed5 (diff)
Add note on GCC options
-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");
}