Merge "Add more allowed ldlibs for darwin and windows"
This commit is contained in:
commit
ff3a2e4d55
|
@ -81,6 +81,7 @@ var (
|
|||
"c",
|
||||
"dl",
|
||||
"m",
|
||||
"ncurses",
|
||||
"pthread",
|
||||
"z",
|
||||
}, "-l")
|
||||
|
|
|
@ -76,6 +76,16 @@ var (
|
|||
"-m64",
|
||||
"-L${windowsGccRoot}/${windowsGccTriple}/lib64",
|
||||
}
|
||||
|
||||
windowsAvailableLibraries = addPrefix([]string{
|
||||
"gdi32",
|
||||
"imagehlp",
|
||||
"ole32",
|
||||
"psapi",
|
||||
"userenv",
|
||||
"uuid",
|
||||
"ws2_32",
|
||||
}, "-l")
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -187,6 +197,10 @@ func (t *toolchainWindows) ExecutableSuffix() string {
|
|||
return ".exe"
|
||||
}
|
||||
|
||||
func (t *toolchainWindows) AvailableLibraries() []string {
|
||||
return windowsAvailableLibraries
|
||||
}
|
||||
|
||||
var toolchainWindowsX86Singleton Toolchain = &toolchainWindowsX86{}
|
||||
var toolchainWindowsX8664Singleton Toolchain = &toolchainWindowsX8664{}
|
||||
|
||||
|
|
Loading…
Reference in New Issue