Commit graph

36292 commits

Author SHA1 Message Date
Luke Boswell
fc0617ae73
Fix wasm32 Debug build stack overflow
- Increase wasm32 initial memory from 4MB to 16MB
- Set explicit 8MB stack size for wasm32 builds (Debug builds need more
  stack due to no inlining)
- Change roc__serialized_size from usize to u32 for consistent
  cross-architecture serialization
- Make Header an extern struct for guaranteed layout
- Add noinline to setupModuleEnvFromSerialized to prevent optimization
  issues

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 16:30:51 -05:00
Luke Boswell
38c474176c
initial implementation 2025-12-10 15:37:13 +11:00
Luke Boswell
4ee22547d3
Merge pull request #8600 from roc-lang/fix-roc-check-for-urls
Build platform and dependencies before app
2025-12-10 09:08:54 +11:00
Luke Boswell
0e9aca5f12
build platform before app 2025-12-10 08:08:47 +11:00
Richard Feldman
f61e7312fd
Merge pull request #8597 from roc-lang/scratch-bound-vars
Use scratch_bound_vars in canonicalization, fix fcntl
2025-12-09 15:51:48 -05:00
Richard Feldman
724a6b6d16
Merge pull request #8598 from roc-lang/more-eval-fixes
More eval fixes
2025-12-09 15:11:41 -05:00
Richard Feldman
21f55dc6eb
Improve some perf 2025-12-09 14:38:30 -05:00
Richard Feldman
cc2e386e87
Update some comments 2025-12-09 14:22:18 -05:00
Richard Feldman
1a0b4b4c8e
Use scratch hash map 2025-12-09 14:22:11 -05:00
Luke Boswell
0abc0d048f
Merge pull request #8548 from roc-lang/roc-build
`roc build` and platform upgrades
2025-12-10 06:18:19 +11:00
Richard Feldman
1d04b742f4
Call fcntl as variadic 2025-12-09 13:53:14 -05:00
Richard Feldman
83f5831ec1
Remove some code duplication 2025-12-09 12:32:30 -05:00
Richard Feldman
f59c339014
More cleanups 2025-12-09 12:31:20 -05:00
Richard Feldman
2f6c34b060
Use scratch_bound_vars in canonicalization 2025-12-09 11:31:12 -05:00
Anton-4
d675e25e94
suppress llvm error 2025-12-09 16:19:06 +01:00
Luke Boswell
74f8193174
another symbol 2025-12-09 21:39:40 +11:00
Luke Boswell
d38f5617d2
add more missing glibc symbols for the fx platform 2025-12-09 21:18:35 +11:00
Luke Boswell
67a4f655e8
fix CC shims and add mmap to glibc stub 2025-12-09 20:08:48 +11:00
Luke Boswell (Linux-Desktop)
4d592a2190
fix segfaults - list_concat double decref and findCapturedValue memory leak 2025-12-09 18:21:24 +11:00
Luke Boswell
dcb602c5ad
fix windows support for platforms and glibc symbols 2025-12-09 15:39:46 +11:00
Luke Boswell
0c96377de0
restore glibc CRT files we removed earlier 2025-12-09 15:29:24 +11:00
Luke Boswell
3703737766
Cleanup target handling and deuplication 2025-12-09 13:30:36 +11:00
Luke Boswell
716ed4c804
wire allow-errors through for roc build 2025-12-09 11:42:28 +11:00
Luke Boswell
4885c439f5
Merge remote-tracking branch 'remote/main' into roc-build 2025-12-09 11:08:22 +11:00
Luke Boswell
17b87a954f
refactor to use common runner for test platforms 2025-12-09 11:06:04 +11:00
Luke Boswell
5c6350336d
WIP - adding more reporting, restore glibc support 2025-12-09 09:51:47 +11:00
Richard Feldman
e175f4bf00
Use lazy allocation 2025-12-08 17:12:46 -05:00
Luke Boswell
e938c0cccc
ensure test platforms have targets 2025-12-09 09:07:56 +11:00
Luke Boswell
189fc7ff07
require targets, remove hardcoding 2025-12-09 08:59:12 +11:00
Richard Feldman
eec04dd9a0
Do stuff more exhaustively 2025-12-08 16:18:37 -05:00
Richard Feldman
07ccadbe80
Do more backing var instantiation 2025-12-08 15:17:36 -05:00
Ameen Radwan
ea76b7b1ee
check for parse/token errors and print them on run (#8586)
* check for parse/token errors and print them on run

* return early on parse fail if errors are not allowed

* fix merge issue
2025-12-08 21:10:16 +01:00
Richard Feldman
c1b088e870
Merge pull request #8580 from roc-lang/fix-flaky-bug
Fix recursive self-capture aliasing bug
2025-12-08 13:59:35 -05:00
Anton-4
b3e509d18c
print if build succeeded (#8590) 2025-12-08 19:25:43 +01:00
Richard Feldman
858f40627b
Replace hacky fix 2025-12-08 12:59:08 -05:00
Etienne Latendresse-Tremblay
f097b9cd44
Fix LSP false positive and diagnostic suppression due to imports resolution (#8585)
* Fix the imports not resolving sometimes

Because WaitingOnImports were only checked once, if they are not ready the build would continue as usual leaving them in limbo. They are now being checked later down the pipeline to be processed properly. This was essential for single threaded build which has no global queue so they were always forgotten

* Suppress false positive errors

Just silences errors of unused variable coming from imports until the imports resolution issue is solved.

---------

Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-08 18:33:32 +01:00
Richard Feldman
ac54bcb0dc
Hacky fix for segfault 2025-12-08 12:28:06 -05:00
Yanni Papandreou
ebb36868ab
Improve error message when platform specified by absolute path (#8574)
* improve error message

Improves error message when platform is wrongly specified by an absolute
path

* improve error message further

* throw error if platform not built yet

* move to better spot

* DRY

---------

Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-12-08 17:36:32 +01:00
godalming123
819e8adc66
Fix error message (#8583) 2025-12-08 16:07:41 +01:00
Richard Feldman
5b8e80f9ba
Merge origin/main into fix-flaky-bug 2025-12-08 09:34:33 -05:00
Richard Feldman
6084ec5e11
Merge pull request #8589 from roc-lang/fix-list-len
Fix List.len return variable
2025-12-08 09:28:38 -05:00
Richard Feldman
9f29b128d1
Treat work stack overflow as normal stack overflow 2025-12-08 09:23:41 -05:00
Richard Feldman
e2a60faa35
Fix segfault by adding type annotations 2025-12-08 09:08:55 -05:00
Richard Feldman
d6e802c50f
Add some new tests 2025-12-08 07:44:45 -05:00
Richard Feldman
4b6876ce98
Merge remote-tracking branch 'origin/main' into fix-flaky-bug 2025-12-08 07:44:42 -05:00
Luke Boswell
8abc3519a7
display helpful error is platform file missing 2025-12-08 20:59:27 +11:00
Luke Boswell
1ff3718bd6
add supported targets for Windows in fx platform 2025-12-08 20:23:17 +11:00
Luke Boswell (Linux-Desktop)
fcd654fdd1
zig lints -- add doc comments for LSP modules 2025-12-08 20:11:42 +11:00
Luke Boswell (Linux-Desktop)
0e964059b1
add debug info and flag 2025-12-08 20:09:31 +11:00
Matthieu Pizenberg
72b72790af
Add List.len regression test
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
2025-12-08 09:57:33 +01:00