Brendan Hansknecht
69d670d27e
Merge pull request #6878 from roc-lang/glue-borrow
...
Update rust glue to allow for borrowing payloads from tags
2024-07-07 15:23:14 -07:00
Ayaz Hafiz
0e52a7e069
Make sure FunctionKind is determined in all entry points
...
There are a lot of entry points for a Roc program. They should probably
be all consolidated into one, but for now, when FunctionKind is needed,
determine it from the environment. This fixes EXPERIMENTAL_ROC_ERASE for
`roc test` etc.
Also print the location of a failure when `internal_error!` is called. I
think this should panic instead, and I thought it used to - does anyone
know if that changed?
2024-07-07 16:01:14 -05:00
Folkert
d5394345de
format RustGlue.roc
2024-07-06 16:14:33 +02:00
Folkert
047779d981
WIP infer join points too
2024-07-06 16:14:29 +02:00
Folkert
92100d710d
better panic message when glue command fails
2024-07-06 16:08:59 +02:00
Brendan Hansknecht
20a1f3c359
Update rust glue to allow for borrowing payloads from tags
2024-07-05 23:30:05 -07:00
Anton-4
c54c0e9741
skip advanced_recursive_union
...
see #5924
2024-06-19 15:37:14 +02:00
Agus Zubiaga
2da7ea394b
Add --main flag to specify app/package to resolve deps from
2024-06-07 17:09:44 -03:00
Luke Boswell
ddccf8ff59
update glue platform files to new syntax
2024-05-05 16:46:34 +02:00
Anton-4
c303be7553
Merge branch 'main' into rust-1-76-0-upgrade
2024-04-30 19:36:01 +02:00
Luke Boswell
87feeb5135
add abilities for glue types
2024-04-24 08:45:29 +10:00
Anton-4
e4b814ce1c
clippy
2024-04-15 16:50:44 +02:00
Anton-4
e26ef8abf9
clippy
2024-04-12 17:40:34 +02:00
Anton-4
62d39e8c25
clippy fixes
2024-04-06 18:11:54 +02:00
Oskar Hahn
aec618d5fc
Remove the .1 version libapp.so and the fileextension .1.0
2024-04-01 12:41:09 +02:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
...
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Anton-4
f620508a37
misc improvements
2024-03-04 17:10:59 +01:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat
2024-02-11 12:26:36 -05:00
Anton-4
3c7a834da1
update to new interpolation syntax
2024-02-02 13:39:10 +01:00
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