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:
commit
9c2e82dd20
5
cc/cc.go
5
cc/cc.go
|
@ -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, " "))
|
||||
|
|
Loading…
Reference in New Issue