Skip to content

Commit

Permalink
Add support for cross-compiling in create-exe with zig cc WIP (#3076)
Browse files Browse the repository at this point in the history
* Add support for cross-compiling in create-exe with zig cc WIP

zig version must be at least 0.10.0-dev.3431+4a4f3c50c

Closes #3042

* Add support for cross-compiling in create-exe with zig cc WIP

zig version must be at least 0.10.0-dev.3431+4a4f3c50c

Closes #3042

* Add SSE2 features to the CPU

* Add SSE2 features to the CPU

* create_exe: locate zig binary and check minimum version

Check that `zig` binary version is at least `0.10.0`

* create-exe: refactor cross-comp cli parsing and error checks

* create-exe: add -lunwind for cross-comp with zig

* Set the proper library for windows

* create-exe: add path exists check for --tarball value

* create-exe: add -msvc environment in triple_to_zig_triple()

Co-authored-by: Syrus Akbary <me@syrusakbary.com>
  • Loading branch information
epilys and syrusakbary authored Aug 8, 2022
1 parent 3b67f8d commit ba543fc
Show file tree
Hide file tree
Showing 6 changed files with 772 additions and 104 deletions.
119 changes: 119 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions lib/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ cfg-if = "1.0"
fern = { version = "0.6", features = ["colored"], optional = true }
log = { version = "0.4", optional = true }
tempfile = "3"
http_req = { version="^0.8", default-features = false, features = ["rust-tls"], optional = true }
dirs = { version = "4.0", optional = true }
serde_json = { version = "1.0", optional = true }

[target.'cfg(target_os = "linux")'.dependencies]
unix_mode = "0.1.3"
Expand All @@ -62,6 +65,7 @@ unix_mode = "0.1.3"
default = [
"wat",
"wast",
"http",
"cache",
"wasi",
"emscripten",
Expand Down Expand Up @@ -131,3 +135,9 @@ enable-serde = [
"wasmer-types/enable-serde",
"wasmer-wasi/enable-serde",
]

http = [
"http_req",
"dirs",
"serde_json",
]
Loading

0 comments on commit ba543fc

Please sign in to comment.