Various host flag updates to match Make am: 01fdd3d

am: 1e43a62

* commit '1e43a621192330a9dcc8d9665eed72d86379dd01':
  Various host flag updates to match Make

Change-Id: Ia1e3e5535316df35d5f6f776079265c2ae08b3f9
This commit is contained in:
Dan Willemsen
2016-03-30 22:10:49 +00:00
committed by android-build-merger
3 changed files with 15 additions and 11 deletions

View File

@@ -72,6 +72,10 @@ var (
"-fstack-protector-strong", "-fstack-protector-strong",
}...) }...)
darwinX86ClangCflags = append(clangFilterUnknownCflags(darwinX86Cflags), []string{
"-msse3",
}...)
darwinClangLdflags = clangFilterUnknownCflags(darwinLdflags) darwinClangLdflags = clangFilterUnknownCflags(darwinLdflags)
darwinX86ClangLdflags = clangFilterUnknownCflags(darwinX86Ldflags) darwinX86ClangLdflags = clangFilterUnknownCflags(darwinX86Ldflags)
@@ -126,8 +130,7 @@ func init() {
pctx.StaticVariable("darwinX86Ldflags", strings.Join(darwinX86Ldflags, " ")) pctx.StaticVariable("darwinX86Ldflags", strings.Join(darwinX86Ldflags, " "))
pctx.StaticVariable("darwinX8664Ldflags", strings.Join(darwinX8664Ldflags, " ")) pctx.StaticVariable("darwinX8664Ldflags", strings.Join(darwinX8664Ldflags, " "))
pctx.StaticVariable("darwinX86ClangCflags", pctx.StaticVariable("darwinX86ClangCflags", strings.Join(darwinX86ClangCflags, " "))
strings.Join(clangFilterUnknownCflags(darwinX86Cflags), " "))
pctx.StaticVariable("darwinX8664ClangCflags", pctx.StaticVariable("darwinX8664ClangCflags",
strings.Join(clangFilterUnknownCflags(darwinX8664Cflags), " ")) strings.Join(clangFilterUnknownCflags(darwinX8664Cflags), " "))
pctx.StaticVariable("darwinX86ClangLdflags", strings.Join(darwinX86ClangLdflags, " ")) pctx.StaticVariable("darwinX86ClangLdflags", strings.Join(darwinX86ClangLdflags, " "))
@@ -215,7 +218,7 @@ func (t *toolchainDarwin) IncludeFlags() string {
} }
func (t *toolchainDarwinX86) ClangTriple() string { func (t *toolchainDarwinX86) ClangTriple() string {
return "i686-darwin-gnu" return "i686-apple-darwin"
} }
func (t *toolchainDarwinX86) ClangCflags() string { func (t *toolchainDarwinX86) ClangCflags() string {
@@ -223,7 +226,7 @@ func (t *toolchainDarwinX86) ClangCflags() string {
} }
func (t *toolchainDarwinX8664) ClangTriple() string { func (t *toolchainDarwinX8664) ClangTriple() string {
return "x86_64-darwin-gnu" return "x86_64-apple-darwin"
} }
func (t *toolchainDarwinX8664) ClangCflags() string { func (t *toolchainDarwinX8664) ClangCflags() string {

View File

@@ -68,13 +68,14 @@ var (
linuxClangCflags = append(clangFilterUnknownCflags(linuxCflags), []string{ linuxClangCflags = append(clangFilterUnknownCflags(linuxCflags), []string{
"--gcc-toolchain=${linuxGccRoot}", "--gcc-toolchain=${linuxGccRoot}",
"--sysroot=${linuxGccRoot}/sysroot", "--sysroot ${linuxGccRoot}/sysroot",
"-fstack-protector-strong", "-fstack-protector-strong",
}...) }...)
linuxClangLdflags = append(clangFilterUnknownCflags(linuxLdflags), []string{ linuxClangLdflags = append(clangFilterUnknownCflags(linuxLdflags), []string{
"--gcc-toolchain=${linuxGccRoot}", "--gcc-toolchain=${linuxGccRoot}",
"--sysroot=${linuxGccRoot}/sysroot", "--sysroot ${linuxGccRoot}/sysroot",
"-B${linuxGccRoot}/${linuxGccTriple}/bin",
}...) }...)
linuxX86ClangLdflags = append(clangFilterUnknownCflags(linuxX86Ldflags), []string{ linuxX86ClangLdflags = append(clangFilterUnknownCflags(linuxX86Ldflags), []string{

View File

@@ -28,7 +28,6 @@ var (
"-DUSE_MINGW", "-DUSE_MINGW",
"-DWIN32_LEAN_AND_MEAN", "-DWIN32_LEAN_AND_MEAN",
"-Wno-unused-parameter", "-Wno-unused-parameter",
"-m32",
// Workaround differences in inttypes.h between host and target. // Workaround differences in inttypes.h between host and target.
//See bug 12708004. //See bug 12708004.
@@ -37,12 +36,14 @@ var (
// Use C99-compliant printf functions (%zd). // Use C99-compliant printf functions (%zd).
"-D__USE_MINGW_ANSI_STDIO=1", "-D__USE_MINGW_ANSI_STDIO=1",
// Admit to using >= Win2K. Both are needed because of <_mingw.h>. // Admit to using >= Vista. Both are needed because of <_mingw.h>.
"-D_WIN32_WINNT=0x0500", "-D_WIN32_WINNT=0x0600",
"-DWINVER=0x0500", "-DWINVER=0x0600",
// Get 64-bit off_t and related functions. // Get 64-bit off_t and related functions.
"-D_FILE_OFFSET_BITS=64", "-D_FILE_OFFSET_BITS=64",
"--sysroot ${windowsGccRoot}/${windowsGccTriple}",
// HOST_RELEASE_CFLAGS // HOST_RELEASE_CFLAGS
"-O2", // from build/core/combo/select.mk "-O2", // from build/core/combo/select.mk
"-g", // from build/core/combo/select.mk "-g", // from build/core/combo/select.mk
@@ -55,7 +56,6 @@ var (
} }
windowsLdflags = []string{ windowsLdflags = []string{
"-L${windowsGccRoot}/${windowsGccTriple}",
"--enable-stdcall-fixup", "--enable-stdcall-fixup",
} }