mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 21:13:39 +00:00
main: use wasm-ld instead of wasm-ld-8 on macOS
This commit does a few things: * remove the -8 suffix on macOS, where it is not necessary * add smoke tests for compiling wasm files on Linux and macOS
This commit is contained in:
committed by
Ron Evans
parent
d653088cbe
commit
31d57fd3d1
@@ -228,7 +228,11 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act
|
||||
}
|
||||
|
||||
// Link the object files together.
|
||||
err = Link(sourceDir(), spec.Linker, ldflags...)
|
||||
if linker, ok := commands[spec.Linker]; ok {
|
||||
err = Link(sourceDir(), linker, ldflags...)
|
||||
} else {
|
||||
err = Link(sourceDir(), spec.Linker, ldflags...)
|
||||
}
|
||||
if err != nil {
|
||||
return &commandError{"failed to link", executable, err}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user