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
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
Nick Lewycky
f98d5bba85
Fix build with only JIT enabled.
2020-08-14 15:36:40 -07:00
Nick Lewycky
fa929ba3d1
Fix compile error building lib/cli without default features and with native engine only.
2020-08-14 14:52:51 -07:00
Mark McCaskey
6e974b92cd
Run cargo fmt
2020-08-13 18:12:43 -07:00
Mark McCaskey
5049c543dc
Rename wasm-common crate to wasmer-types
2020-08-13 17:59:26 -07:00
Mark McCaskey
7849ac516e
Remove debug code from main
2020-08-05 14:07:56 -07:00
Mark McCaskey
7e9d9cab08
Fix memory issue with Emscripten
2020-08-04 18:15:38 -07:00
Nick Lewycky
3d785909c1
Don't attempt to use the logging crate when debugging is disabled.
2020-08-03 18:53:47 -07:00
Nick Lewycky
e942410ef5
Fix the debug config feature and --debug flag.
2020-08-03 17:39:16 -07:00
Nick Lewycky
5e3d66703f
Add support for llvm-debug-dir on functions with a V128 type.
2020-07-30 15:44:42 -07:00
Syrus
d86f8daa76
Added full support for WasiError::Exit code in the CLI
2020-07-24 22:53:19 -07:00
Syrus
8cab73e34f
Move the cli into it’s own library
2020-07-22 21:32:45 -07:00