Merge "Only add -fdebug-prefix-map on Linux hosts"
This commit is contained in:
5
cc/cc.go
5
cc/cc.go
@@ -79,7 +79,6 @@ var (
|
|||||||
"-Wno-unused",
|
"-Wno-unused",
|
||||||
"-Winit-self",
|
"-Winit-self",
|
||||||
"-Wpointer-arith",
|
"-Wpointer-arith",
|
||||||
"-fdebug-prefix-map=/proc/self/cwd=",
|
|
||||||
|
|
||||||
// COMMON_RELEASE_CFLAGS
|
// COMMON_RELEASE_CFLAGS
|
||||||
"-DNDEBUG",
|
"-DNDEBUG",
|
||||||
@@ -114,6 +113,10 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
if common.CurrentHostType() == common.Linux {
|
||||||
|
commonGlobalCflags = append(commonGlobalCflags, "-fdebug-prefix-map=/proc/self/cwd=")
|
||||||
|
}
|
||||||
|
|
||||||
pctx.StaticVariable("commonGlobalCflags", strings.Join(commonGlobalCflags, " "))
|
pctx.StaticVariable("commonGlobalCflags", strings.Join(commonGlobalCflags, " "))
|
||||||
pctx.StaticVariable("deviceGlobalCflags", strings.Join(deviceGlobalCflags, " "))
|
pctx.StaticVariable("deviceGlobalCflags", strings.Join(deviceGlobalCflags, " "))
|
||||||
pctx.StaticVariable("hostGlobalCflags", strings.Join(hostGlobalCflags, " "))
|
pctx.StaticVariable("hostGlobalCflags", strings.Join(hostGlobalCflags, " "))
|
||||||
|
Reference in New Issue
Block a user