summaryrefslogtreecommitdiff
path: root/make/unit-cc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'make/unit-cc.pl')
-rwxr-xr-xmake/unit-cc.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/make/unit-cc.pl b/make/unit-cc.pl
index 75c206d8c..d4786b8fe 100755
--- a/make/unit-cc.pl
+++ b/make/unit-cc.pl
@@ -4,16 +4,16 @@ use warnings;
BEGIN { push @INC, $ENV{SOURCEPATH}; }
use make::configure;
-my $file = shift;
+my $out = shift;
my $verbose;
-if ($file =~ /^-/) {
- $_ = $file;
- $file = shift;
+if ($out =~ /^-/) {
+ $_ = $out;
+ $out = shift;
$verbose = /v/;
}
-my $out = shift;
+my $file = shift;
my $cflags = $ENV{CXXFLAGS};
$cflags =~ s/ -pedantic// if nopedantic($file);