Merge "Only add -fdebug-prefix-map on Linux hosts" am: 99b5a09

am: 9c2e82d

* commit '9c2e82dd20bc3b7c85f51970cfc94179008e0907':
  Only add -fdebug-prefix-map on Linux hosts

Change-Id: Ibfd92457ac0ae44d26541d62d0111fbd52d01a51
This commit is contained in:
Dan Willemsen
2016-03-30 04:18:16 +00:00
committed by android-build-merger

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, " "))