Commit Graph

149 Commits

Author SHA1 Message Date
Felix Schütt
b873f0fe1a Fix make lint 2022-12-23 14:03:18 +01:00
Felix Schütt
c7986832a2 Debug why linking WASMER_METADATA doesn't work for multiple files 2022-12-22 13:58:40 +01:00
Felix Schütt
9d9a6d398e Re-add generate_wasmer_main_c_static 2022-12-21 17:18:27 +01:00
Felix Schütt
b5119432ef Add CLI handling to wasmer_main.c 2022-12-21 15:51:46 +01:00
Felix Schütt
c92d8d34e3 Add compilation for single and multi-wasm inputs 2022-12-21 14:36:06 +01:00
Felix Schütt
bc7d125894 Add compile_c back and add compilation for atoms 2022-12-21 14:36:06 +01:00
Felix Schütt
03693d5ccc Simplify create-exe a lot 2022-12-21 12:14:55 +01:00
Felix Schütt
9795415164 Refactor: split out functions into free function, simplify logic 2022-12-20 12:29:45 +01:00
Felix Schütt
92daae567a Start moving conditionals of compile_zig() and link() into function itself 2022-12-19 15:57:20 +01:00
Felix Schütt
82bc742652 Add initial implementation of Entrypoint::Multi 2022-12-19 13:01:37 +01:00
Felix Schütt
1d4bc0446c Fix make lint / remove unnecessary code 2022-12-19 12:05:55 +01:00
Felix Schütt
77ff807e24 Rework changes to create-exe: only print to stdout when debug_dir set 2022-12-19 12:04:59 +01:00
Felix Schütt
a7e537c335 WIP: debug create-exe 2022-12-19 12:04:38 +01:00
Felix Schütt
9d9ebd4e04 Add failing unit test, create entrypoint.json and prepare linking 2022-12-16 14:37:16 +01:00
Felix Schütt
cdd71d3da3 Add -OReleaseSafe back 2022-12-02 14:52:03 +01:00
Felix Schütt
2c88eb83a8 Do not ignore error on fs::create_dir_all 2022-12-02 14:51:22 +01:00
Felix Schütt
cdbacbb67b Remove --feature http because wasmer_registry requires HTTP deps 2022-12-02 11:56:28 +01:00
Felix Schütt
81cde2b982 Fix make lint 2022-12-02 11:51:38 +01:00
Felix Schütt
14dc05cc08 Refactor methods to filter tarballs 2022-12-02 11:47:05 +01:00
Felix Schütt
54a0b087ce Update lib/cli/src/commands/create_exe.rs
Co-authored-by: Michael Bryan <michael@wasmer.io>
2022-12-02 11:27:25 +01:00
Felix Schütt
5d4817c4a1 Undo changes, recomment out failing tests + add link to zig bug report 2022-12-01 19:46:24 +01:00
Felix Schütt
991ad55bdb Debug undefined wasmer_vm_raise_trap error 2022-12-01 12:33:40 +01:00
Felix Schütt
0822773c09 Don't ping GitHub if local tarball can be found 2022-11-30 20:16:00 +01:00
Felix Schütt
2c254a55cc Fix compilation issue in create-exe function 2022-11-30 20:16:00 +01:00
Felix Schütt
1346252a18 Fix error in searching for file path on Windows 2022-11-30 20:16:00 +01:00
Felix Schütt
0ed1b0d5bd Fix typo 2022-11-18 23:20:38 +01:00
Felix Schütt
126b354a9e Refactor compile_zig to remove duplicated code 2022-11-18 22:25:23 +01:00
Felix Schütt
3daec87b15 Address review comments from https://github.com/wasmerio/wasmer/pull/3299#pullrequestreview-1186599785 2022-11-18 20:17:58 +01:00
Felix Schütt
db299b895d Authenticate requests to /release page with GITHUB_TOKEN in CI 2022-11-18 17:34:17 +01:00
Felix Schütt
71563bc21f Turn error into warning for failing GH API fetch, print response 2022-11-18 16:36:27 +01:00
Felix Schütt
195ec847ee Download -gnu64.tar.gz on Windows, fix make lint 2022-11-18 11:50:10 +01:00
Felix Schütt
a81344e29d Fix windows-gnu create-exe 2022-11-18 11:35:57 +01:00
Felix Schütt
64d4e609a7 Merge branch 'master' into fix-create-exe-windows 2022-11-18 11:11:04 +01:00
Michael-F-Bryan
3a092cf6f9 Make "make lint" pass for Rust 1.63 2022-11-18 00:43:54 +08:00
Felix Schütt
a854775227 Last .o / .obj renaming 2022-11-16 14:08:32 +01:00
Felix Schütt
676e1cc0d6 Revert more .o / .obj renaming 2022-11-16 14:04:29 +01:00
Felix Schütt
aafd57ca9e Remove unpack zip functionality from unpack_tar_gz 2022-11-16 13:58:37 +01:00
Felix Schütt
6375a8d19b Remove unnecessary configuration 2022-11-16 13:55:06 +01:00
Felix Schütt
ec13f47071 Remove try_autoinstall_zig function 2022-11-16 13:50:08 +01:00
Felix Schütt
c60a04c884 Add more debug to the zig autoinstallation 2022-11-16 13:43:00 +01:00
Felix Schütt
493f393abc Update debug output to debug why create-exe on Windows doesn't output anything 2022-11-16 12:29:07 +01:00
Felix Schütt
f73cf54ce8 Fix cross-compile test by switching to build-exe
We run this test only on linux and macos, on Windows it might or
might not work.
2022-11-16 11:27:36 +01:00
Felix Schütt
e3b317ab35 Debug why python.obj doesn't get linked correctly 2022-11-15 23:44:15 +01:00
Felix Schütt
2c604e88f9 Windows: use zig.exe instead of "zig" command 2022-11-15 15:00:37 +01:00
Felix Schütt
c6bd0181de Debug why create-exe is not downloading Zig on Windows part 2 2022-11-15 14:15:16 +01:00
Felix Schütt
748fe292f5 Debug why autoinstalling zig isn't working on Windows 2022-11-15 13:35:28 +01:00
Felix Schütt
b0cee0e5a3 Ignore non- .tar.gz files in cache dir 2022-11-15 13:09:30 +01:00
Felix Schütt
cf77524829 Completely rework downloading logic, add -isystem to zig cc 2022-11-15 12:51:24 +01:00
Felix Schütt
18765cda89 Remove threading when dowloading release to prevent unexpected failure 2022-11-14 15:52:05 +01:00
Felix Schütt
ddf4b33d0b Try to fix include paths for new wasmer-windows target 2022-11-14 15:20:47 +01:00