Commit graph

91 commits

Author SHA1 Message Date
Sam Mohr
b56fbd38e1
Progress on updating entire compiler for snake_case 2025-01-05 03:48:03 -08:00
Jakub Konka
4764b23282
cli: add --verbose flag to CMD_BUILD 2024-12-31 11:57:59 +01:00
Jakub Konka
a4165b3642 linker: introduce SupportLevel to designate completeness
If a linker is `SupportLevel::Full` it can safely be used as a
substitute for the legacy linker. If on the other hand, it's
`SupportLevel::None` then only legacy linker is a viable option.
The third new option is `SupportLevel::Wip` which will enable
surgical linker warning the user that it is a work-in-progress,
your mileage may vary, a lot.
2024-12-30 16:27:50 +01:00
faldor20
81f2095e61
basic working
compiling, but still missing positions from expression errors
2024-12-12 20:54:25 +10:00
Luke Boswell
8a566dc339
WIP 2024-11-11 10:22:58 +11:00
Luke Boswell
c00db6da37
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-11-04 13:57:51 +11:00
Ayaz
e1183e58e5
Merge pull request #7179 from JRI98/unused_emptytuple
Remove unused EmptyTuple variant from FlatType enum
2024-10-25 09:19:57 -04:00
Luke Boswell
926014518f
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-10-24 10:21:08 +11:00
Anton-4
63b8e50d96
refactoring PrebuiltHost, fixed glue tests 2024-10-23 19:30:39 +02:00
JRI98
edd0bb553d
Remove unused EmptyTuple variant from FlatType enum 2024-10-22 16:29:53 +01:00
Richard Feldman
44d00e1f13
Updates for making soa no_std 2024-10-21 22:10:43 -04:00
Luke Boswell
e3afeaa7ff
WIP Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-10-09 09:21:46 +11:00
Omar Jatoi
3f318e2235
update existing calls to roc_cache_dir()
using `roc_cache_packages_dir()` instead, which will return "~/.cache/roc/packages", which was the existing functionality, but `roc_cache_dir()` will now return "~/.cache/roc"
2024-10-03 12:52:52 -04:00
Luke Boswell
861222078e
fix plumbing for roc_glue 2024-08-18 15:05:57 +10:00
Luke Boswell
767ec7af84
cli run tests passing on macos 2024-08-16 17:59:53 +10:00
Luke Boswell
9ecb209f73
add suppress warning flag, remove test test_roc_app_slim 2024-08-16 11:29:39 +10: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
Agus Zubiaga
2da7ea394b
Add --main flag to specify app/package to resolve deps from 2024-06-07 17:09:44 -03: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
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
Folkert
4fe383eb43
cleanup 2024-01-28 16:39:20 +01: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
abc4fd18cc
add --fuzz option to roc 2024-01-25 15:42:18 -08:00
Richard Feldman
5aab05aede
Change Running program... message in glue 2023-12-11 14:36:37 -05:00
Folkert
590282b14f
make glue use a setjmp/longjmp panic handler 2023-12-11 20:33:21 +01:00
Brendan Hansknecht
da301df37b
separate emitting debug info from emitting llvm-ir 2023-12-04 13:13:30 -08:00
Richard Feldman
eebec8a378
Add --output to build, default to app filename 2023-10-19 20:42:28 -04:00
Richard Feldman
cecde60a5e
Revert "glue: find platform main file"
This reverts commit 7be590fae9.
2023-09-08 12:02:25 -04:00
Folkert
7be590fae9
glue: find platform main file 2023-08-28 21:31:50 +02:00
Ayaz Hafiz
6e5a308557
Content variant ErasedLambda 2023-07-12 13:57:17 -05:00
Ayaz Hafiz
44c4797d9a
Parameterize program solving on a FunctionKind
This new flag determines whether we should introduce a new kind to
represent lambda sets, or whether lambdas should be erased. The latter
is not yet implemented.
2023-07-12 13:53:50 -05:00
Folkert
ef39bad7c6
auto clippy fixes 2023-07-10 18:27:08 +02:00
Ayaz Hafiz
f07cf97128
Use arch-specific interner in glue 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
5274dbcd00
Add a Newtype variant to LayoutWrapper 2023-06-06 16:03:52 -05:00
Ayaz Hafiz
dd94d6ba16
Stray dbg 2023-06-06 16:01:28 -05:00
Folkert
d13ca51095
add --dev flag to glue 2023-05-01 18:39:11 +02:00
Folkert
38566a2b9f
add example with arguments 2023-04-02 22:06:04 +02:00
Folkert
3ff17aa0ea
generate signature for the entry points 2023-04-02 20:47:28 +02:00
Folkert
99a3c08911
bake roc_alloc and friends into the dynamic library for glue 2023-03-29 19:43:59 +02:00
Richard Feldman
8f5d18a673
clippy 2023-03-25 13:07:22 -04:00
Brendan Hansknecht
5573ab2275
Merge branch 'glue-getters-rtfeldman' into pluggable-glue 2023-03-05 17:11:25 -08:00
Brendan Hansknecht
17ece67999
get roc glue working directly with .roc plugin files 2023-03-05 12:33:46 -08:00
Brendan Hansknecht
605e4e82b8
add multi element single tag structs 2023-03-05 12:33:45 -08:00
Brendan Hansknecht
f18a806bda
wire everything up 2023-03-05 12:33:43 -08:00
Brendan Hansknecht
0ec14f33f5
first signs of life for glue with roc files 2023-03-05 12:33:43 -08:00
Brendan Hansknecht
b97a87a7a7
load dylib directly as spec for now 2023-03-05 12:33:43 -08:00
Brendan Hansknecht
abdc84d927
create conversion code from Types to the roc version of Types 2023-03-05 12:33:43 -08:00