Merge "Add flags for Windows assembly builds" am: ba0653cdb4

am: dacb269342

Change-Id: Iea9ad5904ffb2eef10354faf1989e8239fd0c552
This commit is contained in:
Jerome Gaillard 2018-11-30 04:47:39 -08:00 committed by android-build-merger
commit 80e1b1250c

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"
}