aboutsummaryrefslogtreecommitdiff
path: root/libbuild2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-07 17:01:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-07 17:01:42 +0200
commit2c8b400010ffedec596969f64e79144f99d73f62 (patch)
treee6ab3e211ea4f3a6b2688aec9ccbd6e663179026 /libbuild2
parent8c809e18afc1add7d0c3d2d09b87ef8b14bfb2af (diff)
Rearrange options for consistency
Diffstat (limited to 'libbuild2')
-rw-r--r--libbuild2/cc/guess.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/guess.cxx b/libbuild2/cc/guess.cxx
index 5b0072a..1952796 100644
--- a/libbuild2/cc/guess.cxx
+++ b/libbuild2/cc/guess.cxx
@@ -1168,13 +1168,13 @@ namespace build2
cstrings args {xp.recall_string ()};
if (c_co != nullptr) append_options (args, *c_co);
if (x_co != nullptr) append_options (args, *x_co);
- args.push_back ("-v");
args.push_back ("-x");
switch (xl)
{
case lang::c: args.push_back ("c"); break;
case lang::cxx: args.push_back ("c++"); break;
}
+ args.push_back ("-v");
args.push_back ("-E");
args.push_back ("-"); // Read stdin.
args.push_back (nullptr);