Commit graph

205 commits

Author SHA1 Message Date
Lucas
fe62e59e31
Merge pull request #2278 from rtfeldman/configure-zig-executable
use ROC_ZIG environment variable to configure which zig is used
2021-12-26 14:40:48 -05:00
Brian Carroll
e10acd59ee Debug config for Wasm backend 2021-12-26 10:45:18 +00:00
Folkert
022b1ca83a use ROC_ZIG environment variable to configure which zig is used 2021-12-25 22:27:52 +01:00
Folkert de Vries
db44d03e66
Merge pull request #2259 from rtfeldman/i/2227-record-layout-hang
Turn invalid record field types into runtime errors
2021-12-23 20:17:34 +01:00
ayazhafiz
0a94f82bc6 Simplify expect_runtime_error_panic 2021-12-22 12:43:48 -06:00
ayazhafiz
823e32961f Add macro to expect runtime error panic through llvm backend, and a test 2021-12-22 09:17:54 -06:00
Brian Carroll
17dc6668ec Make all Wasm blocks NoResult and always put return value in a local var. 2021-12-21 13:16:15 +00:00
Brian Carroll
7cba80efbb Disable some debug code 2021-12-12 08:37:38 +00:00
Brian Carroll
b1a2a3ba07 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-recursive-tags 2021-12-11 23:26:29 +00:00
Folkert
99d12c4f3e use env! macro 2021-12-11 22:11:50 +01:00
Brian Carroll
574eec1d61 Remove fprintf from compilation for faster test runs 2021-12-11 20:36:22 +00:00
Brian Carroll
9594b05c96 Add some debug features to gen_wasm 2021-12-11 20:33:54 +00:00
Brian Carroll
96380d5bfe Link compiler_rt.o in wasm tests 2021-12-11 20:33:11 +00:00
Brian Carroll
f8a1f9e8cf Use PhantomData instead of Default in Wasm tests 2021-12-11 20:33:11 +00:00
Brian Carroll
11118bb555 Remove fprintf from compilation for faster test runs 2021-12-11 20:13:46 +00:00
Brian Carroll
e9343d8b2a Edit dummy libc program 2021-12-11 10:15:32 +00:00
Brian Carroll
2d4dfb49de Update Wasm tests to use libc and platform built by build.rs 2021-12-11 10:15:32 +00:00
Brian Carroll
aefc6e76a4 Build a Wasm libc.a from test_gen/build.rs 2021-12-11 10:15:32 +00:00
Brian Carroll
53d221481e Build a Wasm test platform in test_gen 2021-12-11 10:15:32 +00:00
Brian Carroll
760f4c0ed4 Add an optional Wasm debug feature - hex memory dump 2021-12-08 21:28:59 +00:00
Brian Carroll
6a801ebc7e gen_wasm: add support for non-recursive Tags 2021-12-08 20:45:49 +00:00
Brendan Hansknecht
8c6e5360cd Remove Cell around interns 2021-12-07 16:54:06 -08:00
Folkert
3291cc680e use Cell, remove threading of identids 2021-12-03 21:50:26 +01:00
Brian Carroll
d0ef1e5b36 Route IdentIds to refcount proc generator in dev backend 2021-12-02 09:58:34 +00:00
Brian Carroll
a08633fd36 Debugging improvements 2021-11-30 10:58:03 +00:00
Brian Carroll
820d9e0ab4 Register debug names for new Symbols, and refactor to avoid borrow-checker issues 2021-11-30 09:57:00 +00:00
Brian Carroll
e7d8c7c895 Make gen_wasm's Env mutable 2021-11-30 09:57:00 +00:00
Brian Carroll
ebc1fd6880 Get rid of special ModuleId for refcounting code 2021-11-30 09:57:00 +00:00
Brian Carroll
2ad032f894 Integrate refcount proc generator with Wasm backend 2021-11-30 09:57:00 +00:00
Brian Carroll
61575cea7e Generate calls to refcount procs from Wasm backend 2021-11-30 09:57:00 +00:00
Folkert de Vries
167af34d4b
Merge pull request #2097 from rtfeldman/wasm-empty-record
Wasm empty record
2021-11-29 13:15:40 +01:00
Brian Carroll
dcd4914ac1 Fix and enable tests involving empty records 2021-11-29 00:57:28 +00:00
Brendan Hansknecht
a63dd1eb61 use unimplemented! and internal_error! instead of result in dev backend 2021-11-27 12:38:29 -08:00
Folkert
f96d60a13e Merge remote-tracking branch 'origin/trunk' into layout-builtin-numbers-refactor 2021-11-21 23:19:55 +01:00
Brian Carroll
e5658cc2ca Clippy & formatting 2021-11-21 21:04:42 +00:00
Brian Carroll
ee1c4478da Improve IR debug printing for dev backends 2021-11-21 20:44:16 +00:00
Folkert
2d4e6b414c pass a pointer width of 4 to wasm test gen 2021-11-21 21:37:15 +01:00
Brian Carroll
b5b90fb2b7 Delete unused file 2021-11-17 16:45:52 +00:00
Brian Carroll
1134b6f45c Fix test_wrapper linking bug 2021-11-17 16:45:38 +00:00
Brian Carroll
9de989c0d5 Link wasm test binaries with libc.a 2021-11-17 12:54:39 +00:00
Brian Carroll
5d4518c8d1 Try using C for the wasm test platform 2021-11-16 12:00:13 +00:00
Brian Carroll
b8f40011b9 Generate a test "platform" with libc allocator functions 2021-11-16 11:59:46 +00:00
Brian Carroll
e9f920827e Add support for Zig/LLVM "fast calling convention" 2021-11-15 19:20:55 +00:00
Folkert
e706c3eb0a Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust 2021-11-13 01:06:31 +01:00
Brian Carroll
7f633c107f Fix a bug in our model of the Wasm VM stack 2021-11-12 17:44:31 +00:00
Folkert
144dbef434 Merge remote-tracking branch 'origin/trunk' into tag-union-imitate-rust 2021-11-10 17:19:30 +01:00
Folkert de Vries
56c7318cd9
Merge branch 'trunk' into zig9-to-zig 2021-11-10 12:37:39 +01:00
Nathan Bleigh
2dd86b1f18 Updates zig9 to zig
Referenced in https://github.com/rtfeldman/roc/pull/1905
2021-11-09 21:18:18 -06:00
Folkert
4e2b41f924 fix variable not updated in code disabled by feature flags 2021-11-09 23:04:31 +01:00
Folkert
656832b272 enable linking when running wasm tests 2021-11-09 22:31:11 +01:00