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

am: 99b5a09

* commit '99b5a09022a06a09d20a6fe0c25bdf9f369aaa5c':
  Only add -fdebug-prefix-map on Linux hosts

Change-Id: Ie94615c29eda13bdbac8a646ece9302b35a27610
This commit is contained in:
Dan Willemsen 2016-03-30 04:14:28 +00:00 committed by android-build-merger
commit 9c2e82dd20
1 changed files with 4 additions and 1 deletions

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