summaryrefslogtreecommitdiff
path: root/make/unit-cc.pl
diff options
context:
space:
mode:
Diffstat (limited to 'make/unit-cc.pl')
-rwxr-xr-xmake/unit-cc.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/make/unit-cc.pl b/make/unit-cc.pl
index 5110037ac..3a40457f2 100755
--- a/make/unit-cc.pl
+++ b/make/unit-cc.pl
@@ -15,7 +15,8 @@ if ($file =~ /^-/) {
my $out = shift;
-my $cflags = nopedantic($file) ? $ENV{NICEFLAGS} : $ENV{FLAGS};
+my $cflags = $ENV{CXXFLAGS};
+$cflags =~ s/ -pedantic// if nopedantic($file);
$cflags .= ' ' . getcompilerflags($file);
my $flags;