Merge "Add flags for Windows assembly builds"

am: ba0653cdb4

Change-Id: I7e60185582a0a55e81529d353fbd633873b7a408
This commit is contained in:
Jerome Gaillard 2018-11-30 04:43:31 -08:00 committed by android-build-merger
commit dacb269342

View file

@ -140,6 +140,9 @@ func init() {
pctx.StaticVariable("WindowsX8664ClangCppflags", strings.Join(windowsX8664ClangCppflags, " "))
pctx.StaticVariable("WindowsIncludeFlags", strings.Join(windowsIncludeFlags, " "))
// Yasm flags
pctx.StaticVariable("WindowsX86YasmFlags", "-f win32 -m x86")
pctx.StaticVariable("WindowsX8664YasmFlags", "-f win64 -m amd64")
}
type toolchainWindows struct {
@ -228,6 +231,14 @@ func (t *toolchainWindowsX8664) ClangLldflags() string {
return "${config.WindowsClangLldflags} ${config.WindowsX8664ClangLldflags}"
}
func (t *toolchainWindowsX86) YasmFlags() string {
return "${config.WindowsX86YasmFlags}"
}
func (t *toolchainWindowsX8664) YasmFlags() string {
return "${config.WindowsX8664YasmFlags}"
}
func (t *toolchainWindows) ShlibSuffix() string {
return ".dll"
}