Commit 653f8397 authored by ken's avatar ken
Browse files

[project @ 2001-08-07 17:05:35 by ken]

Allow (and ignore, i.e., strip away) "-optc" prefix in command-line options.
This is for mkdependC-ing and compiling C code under ghc/rts, where we
use ghc-inplace as CC and give -optc-Dxxx options in CC_OPTS.  We used to
generate inaccurate (insufficient) dependencies.
parent eb5e27c3
......@@ -100,10 +100,10 @@ sub mangle_command_line_args {
if ( /^--$/ ) {
$Dashdashes_seen++;
} elsif ( /^-D(.*)/ ) { # recognized wherever they occur
push(@Defines, $_);
} elsif ( /^-I/ ) {
$Include_dirs .= " $_";
} elsif ( /^(-optc)?(-D.*)/ ) { # recognized wherever they occur
push(@Defines, $2);
} elsif ( /^(-optc)?(-I.*)/ ) {
$Include_dirs .= " $2";
} elsif ($Dashdashes_seen != 1) { # not between -- ... --
if ( /^-v$/ ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment