Merge "Only add -fdebug-prefix-map on Linux hosts"

This commit is contained in:
Dan Willemsen
2016-03-30 04:07:54 +00:00
committed by Gerrit Code Review

View File

@@ -79,7 +79,6 @@ var (
"-Wno-unused",
"-Winit-self",
"-Wpointer-arith",
"-fdebug-prefix-map=/proc/self/cwd=",
// COMMON_RELEASE_CFLAGS
"-DNDEBUG",
@@ -114,6 +113,10 @@ var (
)
func init() {
if common.CurrentHostType() == common.Linux {
commonGlobalCflags = append(commonGlobalCflags, "-fdebug-prefix-map=/proc/self/cwd=")
}
pctx.StaticVariable("commonGlobalCflags", strings.Join(commonGlobalCflags, " "))
pctx.StaticVariable("deviceGlobalCflags", strings.Join(deviceGlobalCflags, " "))
pctx.StaticVariable("hostGlobalCflags", strings.Join(hostGlobalCflags, " "))