Fix darwin shared library and proc macro suffixes.

Darwin builds aren't using the correct suffix for shared libraries or
proc macros (.dylib). This fixes that.

Bug: 155302034
Test: "cd external/rust; mma" no longer indicates wrong extension.
Change-Id: I5093e0bcc78dbb2dd9fcf39069f326101bb8f411
This commit is contained in:
Ivan Lozano 2020-05-28 11:31:16 -04:00
parent 7500f46b95
commit c0ccb6b443
1 changed files with 5 additions and 1 deletions

View File

@ -62,7 +62,11 @@ func (t *toolchainDarwinX8664) RustTriple() string {
return "x86_64-apple-darwin"
}
func (t *toolchainDarwin) ShlibSuffix() string {
func (t *toolchainDarwin) SharedLibSuffix() string {
return ".dylib"
}
func (t *toolchainDarwin) ProcMacroSuffix() string {
return ".dylib"
}