Folkert
81caa96af2
Merge remote-tracking branch 'origin/trunk' into update_zig_09
2022-05-07 19:38:04 +02:00
Folkert
07383e96f0
Merge remote-tracking branch 'origin/trunk' into i/2792
2022-05-06 20:17:53 +02:00
Folkert
64b633bea6
make round return an integer
2022-05-06 20:17:40 +02:00
Folkert
5755475b3a
add ListIsUnique lowlevel operation
2022-05-06 13:56:35 +02:00
Brian Carroll
dd1d49db75
Build WASI libc using Zig, instead of using a checked-in binary
2022-05-03 08:00:58 +01:00
Folkert
84f0839de9
remove zig import we don't need in 0.9.1
2022-04-30 23:43:38 +02:00
Folkert
b7b86c0cde
Merge remote-tracking branch 'origin/trunk' into update_zig_09
2022-04-30 23:34:48 +02:00
Ayaz Hafiz
0bc85ad32c
Only load setjmp/longjmp from Zig on aarch64
2022-04-28 09:13:29 -04:00
Ayaz Hafiz
fa8108e3a8
SJLJ roc_panic on AArch64
...
```
$ uname -m
arm64
$ cargo test -p test_gen gen_num::abs_min_int_overflow
Finished test [unoptimized + debuginfo] target(s) in 0.09s
Running src/tests.rs (target/debug/deps/test_gen-b2041868d2cf26f3)
running 1 test
test gen_num::abs_min_int_overflow - should panic ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 933 filtered out; finished in 0.14s
```
2022-04-27 22:43:34 -04:00
Brian Carroll
9491d5fae9
Merge branch 'trunk' into update_zig_09
2022-04-15 21:17:25 +01:00
Richard Feldman
ae59eab55b
Merge pull request #2850 from rtfeldman/issue-2646/Num-toStr
...
Issue 2646 - Num.toStr crash
2022-04-15 10:54:20 -04:00
Richard Feldman
629d17c3ae
Restore old IR name for wasm32
2022-04-14 13:21:24 -04:00
Richard Feldman
be725d6421
Revert changes to IR filenames
2022-04-14 10:55:25 -04:00
Jared Cone
cb3ea8641c
Fixed strFromIntHelp. std.math.minInt is 0 for unsigned types, so buffer size was being set to only 1.
2022-04-13 23:20:09 -07:00
Richard Feldman
412eb763bb
Add support for x64 linux
2022-04-13 01:21:12 -04:00
Richard Feldman
c7f5beb0ad
Rename generated .bc files to have target triples
2022-04-13 01:21:12 -04:00
Nikita Mounier
4ecf2a8c24
Modify division behaviour to panic when dividing by 0, and add divChecked
, divFloorChecked and
divCeilingChecked` for safe alternatives which return a Result, mimicking the previous behaviour.
2022-04-11 11:23:33 +00:00
Brian Carroll
024fd81a0b
Further improve zig wasm builtins test script
2022-04-08 16:38:46 +01:00
Brian Carroll
a2f714234a
Make Zig wasm test script more robust
2022-04-08 15:14:58 +01:00
Folkert
f587c3b49c
update zig wasm test runner script
2022-04-08 14:33:10 +02:00
Folkert
9d040e8203
zig 0.9 change
2022-04-08 13:04:50 +02:00
ayazhafiz
134a7bf787
Update wasm implementation
2022-04-07 21:10:22 -04:00
Folkert
a69bf971f0
Merge remote-tracking branch 'origin/trunk' into update_zig_09
2022-04-06 15:38:15 +02:00
Folkert
68536e4026
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-04-04 19:55:04 +02:00
Folkert
1e397e950d
changes after review
2022-04-04 19:53:33 +02:00
Brendan Hansknecht
3ef40e2e82
use exhaustive refcount pattern match
2022-04-03 13:29:16 -07:00
Brendan Hansknecht
a1c469232f
simplify allocate_with_refcount to be closer to the old llvm version
2022-04-01 16:27:42 -07:00
Brendan Hansknecht
a4f0ed1990
flip max for min
2022-04-01 15:07:00 -07:00
Brendan Hansknecht
3606543ac0
keep normal as the default refcounting
2022-04-01 15:03:16 -07:00
Brendan Hansknecht
2093405ffc
make sure the rodata refcounts aren't incremented
2022-04-01 15:02:01 -07:00
Brendan Hansknecht
cf238862f4
fix formatting
2022-04-01 14:12:31 -07:00
Brendan Hansknecht
577282ced3
have zig allocate all refcounts
2022-04-01 14:06:28 -07:00
Brendan Hansknecht
805e4ef5d3
change refcount type to enum so none can be select
2022-04-01 13:48:14 -07:00
Brendan Hansknecht
56dc503d11
fix formatting
2022-03-31 22:26:18 -07:00
Brendan Hansknecht
a75ecb2883
add variable to enable atomic refcounts for testing
2022-03-31 22:18:25 -07:00
Folkert
e94bdb0ed8
use a nullable pointer to store the output of strSplitInPlace
2022-03-30 19:18:29 +02:00
Folkert
85bf881b3b
make Dict.keys and Dict.values use list helpers for returning
2022-03-30 19:14:52 +02:00
Folkert
d49ee97216
use a nullable pointer to store the output of strSplitInPlace
2022-03-30 17:32:24 +02:00
Folkert
9528f63d87
make Dict.keys and Dict.values use list helpers for returning
2022-03-26 12:36:14 +01:00
Folkert
74f9443a3e
Revert "some zig functions need to accept arguments by-pointer now"
...
This reverts commit fcb34272da
.
2022-03-25 10:45:45 +01:00
Folkert
4e3644a4c6
Revert "fix zig tests"
...
This reverts commit 89223c4032
.
2022-03-25 10:45:31 +01:00
Brian Carroll
22ccadccc9
Merge pull request #2699 from rtfeldman/wasm-zig-tests
...
Run Zig builtin tests on Wasm too
2022-03-19 20:36:54 +00:00
Folkert
89223c4032
fix zig tests
2022-03-13 20:03:06 +01:00
Folkert
fcb34272da
some zig functions need to accept arguments by-pointer now
...
because otherwise stores to alloca's disappear. Very odd
2022-03-13 00:07:32 +01:00
Brian Carroll
b57c0ee6bf
CI: Run Zig builtin tests on wasm as well as host
2022-03-12 08:09:23 +00:00
Brian Carroll
456d8ff9cb
Merge branch 'trunk' of github.com:rtfeldman/roc into list-str-capacity
2022-03-11 19:28:13 +00:00
Tom Dohrmann
17398e4f45
fix listSublist
bitcode
2022-03-11 11:32:20 +01:00
Brian Carroll
4878c701ae
Fix Zig builtins for 32-bit targets
2022-03-10 23:26:58 +00:00
Folkert
19c46916d9
fix zig string tests
...
mostly, strings that were small before are now not, so I had to increase the string lengths
2022-03-09 19:25:51 +01:00
Folkert
82dddf4c3a
add capacity field to make tests compile
2022-03-09 19:21:11 +01:00