Commit graph

599 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
44b4d2b3c9 Enable remaining gen_compare tests for wasm 2021-12-26 10:45:23 +00: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
d70e803dff add test 2021-12-24 21:19:09 +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
ed64ff912a Implement List.dropIf
This was referenced in the `List` documentation and in the
[tutorial](./TUTORIAL.md), but wasn't actually implemented prior to this
commit!

Part of #2227
2021-12-22 12:34:48 -06:00
ayazhafiz
3c2822224a Update expected failure tests to use expect_runtime_error_panic 2021-12-22 09:23:50 -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
d33c1b54fd Ensure unique names for helper procs 2021-12-22 09:28:20 +00:00
Brian Carroll
4a970f089a Eq for empty list 2021-12-22 09:22:31 +00:00
Brian Carroll
e9ae8452b0 Equality tests passing for List I64 2021-12-22 08:42:39 +00:00
Brian Carroll
1c20075d7b Change usage of Wasm if instruction now that we don't support block results anymore 2021-12-21 23:14:55 +00:00
Brian Carroll
a99db445e4 Disable broken tests 2021-12-21 18:36:30 +00:00
Folkert de Vries
2f1c648602
Merge pull request #2253 from rtfeldman/wasm-no-block-results
Wasm: fix nested conditionals
2021-12-21 16:35:22 +01:00
Folkert de Vries
18187bc43f
Merge pull request #2245 from rtfeldman/wasm-tag-eq
Wasm tag equality
2021-12-21 16:24:14 +01:00
Brian Carroll
2a141b3586 Automatically clean up any unused values at the end of a block 2021-12-21 13:16:15 +00: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
rvcas
e269fc4345 test(wasm): more wasm_str tests 2021-12-20 17:48:34 -05:00
Brian Carroll
9b833720d4 Further refactor and debug == in Wasm 2021-12-20 08:39:16 +00:00
Brian Carroll
c510226c15 Reorganise Wasm lowlevels to get pointer equality working correctly 2021-12-19 21:20:06 +00:00
Brian Carroll
0bdf76f81a
Merge pull request #2234 from rtfeldman/str-split-empty-delimiter
Add empty-delimiter handling for `Str.split`
2021-12-19 12:43:01 +00:00
Brian Carroll
a1d883600c Equality operator for records 2021-12-18 17:25:00 +00:00
Jan Van Bruggen
96724e73aa Add empty-delimiter handling for Str.split 2021-12-18 00:53:17 -07:00
Brian Carroll
d32d1e8e61 enable more Str equality tests for wasm 2021-12-17 23:47:28 +00:00
rvcas
14e66de0b7 tests(wasm): assert_concat_work needs a feature flag too 2021-12-17 12:52:55 -05:00
rvcas
a18c3e2c3a tests(wasm): fix tests 2021-12-17 12:44:11 -05:00
rvcas
edd3c8c4c1 tests(wasm): List.isEmpty already works now 2021-12-17 12:05:17 -05:00
rvcas
b9bd75d643 Merge branch 'trunk' into wasm_arrays 2021-12-17 11:54:23 -05:00
rvcas
660c3dc111 tests(wasm): prep tests for CI 2021-12-17 11:47:58 -05:00
rvcas
40da207859 feat(wasm): LowLevel::ListLen 2021-12-16 21:50:12 -05:00
rvcas
c14b4b81e0 Merge branch 'trunk' into wasm_arrays 2021-12-16 21:07:12 -05:00
Brian Carroll
86d8e2789e Implement Wasm string equality 2021-12-16 16:56:56 +00:00
Brian Carroll
594fe9124d Wasm support for 128-bit number literals, isFinite, ==, and != 2021-12-13 09:05:07 +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 de Vries
b9395e9b75
Merge pull request #2181 from rtfeldman/wasm-test-platform
Improve Wasm test builds
2021-12-11 22:48:33 +01: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
f54f96281f Fix roc_alloc linking. Test passes for recursive Tag 2021-12-11 20:33:11 +00:00
Brian Carroll
f3ca3be507 Add Wasm support for recursive tags, along with GetTagId and UnionAtIndex 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
544caf0f43 Only run Wasm build steps for test_gen when gen-wasm feature is enabled 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