From cfd4c3a1815359d394a2c3cb678bb1d10223d549 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 29 Dec 2015 11:56:55 +0000 Subject: [PATCH] superenv/cc: don't filter out `gdwarf-2`. It's needed by `cgo` which is used by a lot of Go software. --- Library/ENV/4.3/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index 91707eea97..2ce4bf73d5 100755 --- a/Library/ENV/4.3/cc +++ b/Library/ENV/4.3/cc @@ -135,7 +135,7 @@ class Cmd args = [] case arg - when /^-g\d?/, /^-gstabs\d+/, "-gstabs+", /^-ggdb\d?/, "-gdwarf-2", + when /^-g\d?$/, /^-gstabs\d+/, "-gstabs+", /^-ggdb\d?/, /^-march=.+/, /^-mtune=.+/, /^-mcpu=.+/, /^-O[0-9zs]?$/, "-fast", "-no-cpp-precomp", "-pedantic", "-pedantic-errors", "-Wno-long-double",