forked from wasmerio/wasmer-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(runtime) Use pre-compiled dynamic libraries.
This patch depends on wasmerio/wasmer#474, which fixes the dylib ID for macOS to use `@rpath`. This patch renames the `just go` recipe to `just build`. The `just build` recipe compiles the Rust dynamic library only when required, i.e. when the `libwasmer_runtime_c_api.*` file is absent from the source tree. This patch also updates `bridge.go` to specify the `rpath` to the linker with `-Wl,-rpath`. On macOS, the solution would be to set `rpath` to `@executable_path` but since https://nvd.nist.gov/vuln/detail/CVE-2018-6574, some flags are disabled (see https://github.com/golang/go/wiki/InvalidFlag for more information). Hopefully for us, cgo has this special `${SRCDIR}` variable (see https://golang.org/cmd/cgo/#hdr-Using_cgo_with_the_go_command), which is a possible alternative.
- Loading branch information
Showing
4 changed files
with
13 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.