diff options
| -rwxr-xr-x | cgcc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -7,6 +7,7 @@ my $check = $ENV{'CHECK'} || 'sparse'; my $m32 = 0; my $m64 = 0; my $has_specs = 0; +my $gendeps = 0; my $do_check = 0; my $do_compile = 1; my $verbose = 0; @@ -22,6 +23,7 @@ foreach (@ARGV) { $m32 = 1 if /^-m32$/; $m64 = 1 if /^-m64$/; + $gendeps = 1 if /^-M$/; if (/^-specs=(.*)$/) { $check .= &add_specs ($1); @@ -44,6 +46,11 @@ foreach (@ARGV) { $check .= $this_arg unless &cc_only_option ($_); } +if ($gendeps) { + $do_compile = 1; + $do_check = 0; +} + if ($do_check) { if (!$has_specs) { $check .= &add_specs ('host_arch_specs'); |
