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:
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, " "))
|
||||
|
Reference in New Issue
Block a user