Mark McCaskey
5b67b2f3dc
Merge branch 'master' into feature/host-env-prototype
2020-10-27 16:24:00 -07:00
jubianchi
2452b9a604
chore(doc): Add the Wasmer logo to the generated API documentation
2020-10-26 22:37:30 +01:00
Mark McCaskey
46204d6357
Fix up more tests
2020-10-21 12:00:30 -07:00
Mark McCaskey
011ec22d43
Merge branch 'master' into feature/host-env-prototype
2020-10-20 15:46:50 -07:00
Mark McCaskey
3c7dfe29f3
Add hacked together vertical slice of host env updating idea
2020-10-19 17:19:46 -07:00
Mark McCaskey
c5df8cfd9e
Fix func_calls to not pass NULL but WASM_EMPTY_VEC
2020-10-19 14:50:39 -07:00
Mark McCaskey
6d326233f7
Merge branch 'master' into fix/create-exe-genearted-code-bugs
2020-10-19 10:03:05 -07:00
Mark McCaskey
2175472c6d
When running in WASI, get the _start function explicitly
2020-10-16 13:43:14 -07:00
Ivan Enderlin
1cdb5b5876
fix(c-api) Fix another typo. Damn.
2020-10-16 21:24:36 +02:00
Ivan Enderlin
3b05c2612d
fix(c-api) Fix last edit of the wasmer_create_exe_main.c file.
2020-10-16 20:44:49 +02:00
Ivan Enderlin
4f9932c350
feat(cli) Update the crate_exe_main.c file to the latest Wasm C API.
2020-10-16 10:46:28 +02:00
Syrus
38ebdb94ef
added create-exe as possible cli option
2020-10-13 18:33:51 -07:00
Mark McCaskey
3a59e8a59d
Fix mistake in name of C API lib on Windows
2020-10-13 14:45:19 -07:00
Mark McCaskey
aeb17cda6a
Fix cfg logic in wasmer.rs again
2020-10-12 16:30:13 -07:00
Mark McCaskey
fc11c10063
Add comment about why Windows is using clang++
2020-10-12 16:25:40 -07:00
Mark McCaskey
e430bbaf4f
More explicitly feature gate wasmer create-exe
2020-10-12 16:17:34 -07:00
Mark McCaskey
fd63ddb101
Merge branch 'master' into feature/wasmer-create-exe
2020-10-12 15:54:54 -07:00
Mark McCaskey
81fd4fc042
Clean create-exe code a bit
2020-10-12 15:53:46 -07:00
Mark McCaskey
a0b237c1f6
Add test using mapdir and dir, fix misc bugs
2020-10-12 15:04:25 -07:00
Mark McCaskey
21c1770426
Improve error message when WASMER_DIR is not set
2020-10-12 13:51:03 -07:00
Mark McCaskey
c6460d1d77
Add target support to wasmer create-exe
2020-10-12 13:48:26 -07:00
Mark McCaskey
ba7b24f696
Add --dir and --mapdir support to native executable
2020-10-09 17:38:14 -07:00
Nick Lewycky
fbad7ad25c
Running clippy again found two more improvements.
...
Missed a manual memcpy loop in engine-object-file.
CompilerType::enabled() is a Vec<>, so just use is_empty() instead of trying to generically determine whether an Iter is empty.
2020-10-08 21:10:35 -07:00
Nick Lewycky
3b3882f9f5
NFC. Remove redundant return.
2020-10-08 21:04:44 -07:00
Nick Lewycky
03297ab993
Use a non-looping push to push a single element.
...
https://rust-lang.github.io/rust-clippy/master/index.html#single_char_push_str
2020-10-08 20:59:48 -07:00
Nick Lewycky
633310899f
Remove redundant clones of string.
...
https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
2020-10-08 20:58:53 -07:00
Nick Lewycky
39d87f4e51
Test whether a list is empty by looking at one value, no need for map + collect.
...
https://rust-lang.github.io/rust-clippy/master/index.html#needless_collect
2020-10-08 20:56:36 -07:00
Nick Lewycky
f8a7ee20c3
Always write out the whole header file.
...
write() may return after completing part of a write and returns the amount written. Use write_all().
https://rust-lang.github.io/rust-clippy/master/index.html#unused_io_amount
2020-10-08 19:38:52 -07:00
Mark McCaskey
61c88be863
Prepare for 1.0.0-alpha4 release
2020-10-08 16:47:14 -07:00
Mark McCaskey
65265dbd73
Add first draft of wasmer create-exe
2020-10-08 14:13:54 -07:00
Mark McCaskey
52d1f86f47
Add no-op keyed helper function for object file engine generated C
2020-10-06 17:31:26 -07:00
Mark McCaskey
7fdcdaa61c
Add more changes from feedback; simplify C code with helper functions
2020-10-06 17:02:54 -07:00
Mark McCaskey
aa2e8f7b4d
Address more feedback, clean up code
2020-10-06 12:13:59 -07:00
Mark McCaskey
439e73fcc5
Address feedback, add downcasting to Artifact trait
2020-10-05 14:23:54 -07:00
Mark McCaskey
fec7644bb8
Port integration test to Windows
...
Add conditional logic for Windows style object files
Explicitly require c11 for wasm.h
Use `clang++` on Windows for `static_assert`
Improve generated C + add hack to make function pointers work better
Add logic to handle Window's static library file extension
Improve linking logic to work on Windows
Add support for C++ compilers for object-file-engine generated C
Add C++ support to wasmer_wasm.h
Add C++ support to test C file too
Add linking flags for Windows, make assert line-ending neutral
Adjust asserted output to handle differences on Windows
2020-09-30 14:46:34 -07:00
Mark McCaskey
76ad597bef
Clean up CLI integration tests
2020-09-27 15:45:42 -07:00
Mark McCaskey
e23ff69594
Merge branch 'master' into feature/engine-object-file
2020-09-25 11:07:25 -07:00
Mark McCaskey
ead9532004
Prepare for 1.0.0-alpha3 release
2020-09-14 13:12:56 -07:00
Syrus
2cd12213fb
Standardize Cargo files of all crates
2020-09-13 22:11:16 +03:00
Mark McCaskey
1ee2ba30a2
Prepare for 1.0.0-alpha02.0 release
2020-09-11 14:40:25 -07:00
Mark McCaskey
4e7f0d52e2
Clean up generating C code; pass in metadata length
...
Add some unit tests for the C code generation
2020-09-04 12:31:43 -07:00
Mark McCaskey
86e934a755
Move header file generation logic
...
WIP, still need to get the length of the metadat object, but otherwise
everything should be working.
2020-09-03 17:45:27 -07:00
Mark McCaskey
3f109bf5c7
Add downcast method to Artifact remove create_header method
2020-09-02 15:58:51 -07:00
Mark McCaskey
f2f19dd468
Merge branch 'master' into feature/engine-object-file
2020-09-01 14:45:54 -07:00
Mark McCaskey
fdfdeeb94a
Improve some of the UX of the compile command, add docs
2020-09-01 14:26:29 -07:00
Mark McCaskey
485cc1dc7e
Fix things up, get things working
2020-08-28 14:54:20 -07:00
Mark McCaskey
28aead6a50
Add engine object-file (WIP)
2020-08-26 13:49:47 -07:00
Nick Lewycky
e4acb2b819
Fix compile error.
...
`make test` does not build lib/cli.
2020-08-21 00:11:56 -07:00
Nick Lewycky
5d40787856
Add a compiler-llvm CompilerFunctionKind for the whole module which can occur with the experimental API for engine-native.
...
Since it's no longer per-function, rename CompilerFunctionKind to CompilerKind.
2020-08-20 23:28:07 -07:00
nlewycky
92082dda14
Merge branch 'master' into release/1.0.0-alpha1.0
2020-08-14 16:24:47 -07:00