jyn
jyn
Test cases: https://github.com/pfultz2/Cloak
Some of these can be solved completely with [newtypes](https://doc.rust-lang.org/rust-by-example/generics/new_types.html), like `Comparison` can very easily be an enum. Others sound to me like [typestate](http://cliffle.com/blog/rust-typestate/) (e.g. `current_function`) but I'd have to read...
The way I was planning to do this is modifying https://github.com/jyn514/saltwater/blob/8a52d91ba584925a1c09a409c17ede1f652848f2/tests/utils/mod.rs#L75, etc. to run `cc` against the code in addition to `swcc`, yeah.
https://github.com/brendanzab/codespan/pull/82/files looks helpful
This breaks when compiling without `--all-features`, although I'm not sure why. ``` error[E0432]: unresolved import `saltwater_codegen::compile_decl` --> saltwater-repl/repl.rs:7:25 | 7 | use saltwater_codegen::{compile_decl, initialize_jit_module, JIT}; | ^^^^^^^^^^^^ no `compile_decl` in...
``` error[E0063]: missing field `jit` in initializer of `saltwater_parser::Opt` --> src/main.rs:361:14 | 361 | opt: Opt { | ^^^ missing `jit` ``` You're passing `--jit` to the codegen crate, but...
Opened https://github.com/bytecodealliance/wasmtime/pull/2199
For now let's just add `#[cfg(not(target_pointer_width = "64"))] compile_error!("only x86_64 is supported");`, and then we can make it a run-time error instead once cranelift is updated.
Update: this is in fact an issue. The solution is to pass `-z noexecstack`, but I need to make sure that's also compatible with MacOS/Windows. ``` $ rcc tests/runner-tests/hello_world.c $...
This is going to be annoying because non-gnu compilers will reject unknown arguments. ``` ld: unknown option: -z clang: error: linker command failed with exit code 1 (use -v to...