Commit graph

474 commits

Author SHA1 Message Date
Brendan Hansknecht
81dcaeceef
Update test_glue_cli to use surgical and legacy linker
I am hoping this will increase the changes of hitting a repro of #5924 with the legacy linker.
2024-01-30 22:30:30 -08:00
Brendan Hansknecht
f3b934c444
skip more broken glue tests on linux 2024-01-30 20:32:52 -08:00
Richard Feldman
3e27e18566
Merge remote-tracking branch 'origin/main' into remove-nat 2024-01-29 07:23:58 -05:00
Folkert de Vries
eadc0d37cd
Merge pull request #6448 from roc-lang/dev-backend-glue-new
glue with the dev backend works again
2024-01-29 11:51:12 +01:00
Anton-4
1c62a41fad
Merge pull request #6333 from roc-lang/rust-1-72-upgrade
Rust 1.72 upgrade
2024-01-29 04:32:40 +01:00
Richard Feldman
3264d9ec8e
Merge pull request #6432 from jaredly/fix-glue
Fix syntax errors from RustGlue's tag generated code
2024-01-28 16:33:19 -05:00
Anton-4
4da0b005f6
forgot &
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-01-28 17:30:38 +01:00
Folkert
4fe383eb43
cleanup 2024-01-28 16:39:20 +01:00
Anton-4
f09b4aaac4
skip nullable_wrapped too
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-01-28 16:35:34 +01:00
Anton-4
70f33f1a07
disable glue_cli_run::option,closures 2024-01-28 16:03:25 +01:00
Luke Boswell
be5c538763
fix glue TypeId 2024-01-28 10:57:43 +11:00
Folkert
685025a240
a working dev-backend RustGlue.roc
with 2 caveates

- list reallocation does not work (so we make fresh allocations instead
- List.append in the glue main function causes a segfault. we use a concat with a single-element list instead
2024-01-28 00:36:07 +01:00
Folkert
2786e8ff7f
refactor glue roc calling logic 2024-01-27 18:14:12 +01:00
Brendan Hansknecht
689a930082
Merge remote-tracking branch 'origin/main' into rust-1-72-upgrade 2024-01-27 08:07:48 -08:00
Luke Boswell
d5b05f4321
fix spelling 2024-01-27 14:03:20 +11:00
Luke Boswell
88330c7f33
add files to zig glue 2024-01-27 13:46:53 +11:00
Luke Boswell
62ec6ad8ea
fix glue InternalTypeId.roc 2024-01-27 13:43:29 +11:00
Richard Feldman
d909cc5961
Update glue to no longer use Nat 2024-01-26 16:06:07 -05:00
Jared Forsyth
bbbbb12e90 Fix syntax errors from RustGlue's tag generated code
```rs
    /// A tag named ``DirReadErr``, with the given payload.
    pub fn DirReadErr(f0: UnwrappedPath, f1: roc_std::RocStr) -> Self {
        Self {
            f0
            f1
        }
    }
```
becomes
```rs
    /// A tag named ``DirReadErr``, with the given payload.
    pub fn DirReadErr(f0: UnwrappedPath, f1: roc_std::RocStr) -> Self {
        Self {
            f0,
            f1
        }
    }
```
2024-01-26 11:00:00 -06:00
On vacation
4ee3431428
Merge branch 'main' into rust-1-72-upgrade 2024-01-26 13:39:34 +01:00
Brendan Hansknecht
abc4fd18cc
add --fuzz option to roc 2024-01-25 15:42:18 -08:00
Brendan Hansknecht
260b94b36d
Merge branch 'main' into rust-1-72-upgrade 2024-01-17 14:36:16 -08:00
Brendan Hansknecht
f9c0d54688
Stop using "rlib"
I don't know if this matters at all, but I don't think we should use "rlib".
The [rust docs](https://doc.rust-lang.org/reference/linkage.html) suggest using "lib" by default.
"lib" probably just aliases to "rlib", but it lets the compiler pick what it wants.
I don't think this will fix anything, but I am half hopeful it will somehow fix #6121.
2024-01-16 22:36:10 -08:00
Brian Teague
60c639b60e
Consolidate gitignore
Keep certain files with no file extension

Keep specific files with no file extension

Delete all gitignore files
2024-01-10 22:16:04 -05:00
Anton-4
c85a25e320
clippy fixes 2024-01-01 19:19:44 +01:00
Anton-4
cd632fe549
Merge branch 'main' of github.com:roc-lang/roc into clippy-1.74 2023-12-25 17:05:37 +01:00
Folkert
ee1dd2cd14
disable a glue test that segfaults 2023-12-12 19:35:51 +01:00
Richard Feldman
5aab05aede
Change Running program... message in glue 2023-12-11 14:36:37 -05:00
Richard Feldman
e1697a910c
cargo fmt 2023-12-11 14:35:49 -05:00
Folkert
590282b14f
make glue use a setjmp/longjmp panic handler 2023-12-11 20:33:21 +01:00
Luke Boswell
61a55ad79d
make a start 2023-12-07 11:25:02 +11:00
Brendan Hansknecht
da301df37b
separate emitting debug info from emitting llvm-ir 2023-12-04 13:13:30 -08:00
Brendan Hansknecht
787d7f85ac
switch dbg arg ordering to make it backwards compatible 2023-12-02 21:18:32 -08:00
Brendan Hansknecht
602b92d98c
re-add no longer broken glue tests 2023-12-02 21:18:32 -08:00
Brendan Hansknecht
13d2238536
update roc_dbg in platforms 2023-12-02 21:18:31 -08:00
Ayaz
aaba3f4d82
Merge branch 'main' into clippy-1.74 2023-12-02 20:09:06 -06:00
Brendan Hansknecht
9f1f0610d1
disable flaky glue test for now 2023-11-29 23:17:11 -08:00
Brendan Hansknecht
7b53f08e75
hopefully fix glue platform exit code issue 2023-11-29 22:45:12 -08:00
Brendan Hansknecht
88106d1659
add basic roc_dbg impl to c platforms 2023-11-29 22:02:27 -08:00
Brendan Hansknecht
3e66254b25
update zig and rust platforms to have correct roc_panic and roc_dbg 2023-11-29 21:49:34 -08:00
Folkert
cfeac8922e
remove clippy warning that does not exist in 1.71 2023-11-18 23:27:54 +01:00
Folkert
554f84f97f
remove clippy warning that does not exist in 1.71 2023-11-18 23:24:26 +01:00
Folkert
eda9681982
final fixes 2023-11-18 23:10:21 +01:00
Folkert
c019ced31d
various 2023-11-18 23:05:55 +01:00
Richard Feldman
79e87339b3
Merge pull request #5974 from roc-lang/drop-old-glue
Remove obsolete rust_glue and tests
2023-11-12 21:20:14 -05:00
Brendan Hansknecht
3c68221da5
add test case for glue generation of closures 2023-11-12 11:15:07 -08:00
Brendan Hansknecht
97a7c30eb9
remove constant function name 2023-11-11 16:17:44 -08:00
Brendan Hansknecht
72ddfb036d
correctly handle functions that don't return functions 2023-11-11 15:56:18 -08:00
Brendan Hansknecht
681a130b54
add file header to glue lib file 2023-11-11 15:56:17 -08:00
Brendan Hansknecht
a474423a48
correct the closure rust glue to deal with size and bytes 2023-11-11 15:56:17 -08:00