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:
Ayke van Laethem
2019-04-02 19:17:07 +02:00
committed by Ron Evans
parent d653088cbe
commit 31d57fd3d1
5 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -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}
}