Commit graph

136 commits

Author SHA1 Message Date
Richard Feldman
9053f21841
zig fmt 2025-10-12 19:52:54 -04:00
Richard Feldman
31345252b5
More ModuleEnv consistency fixes 2025-10-12 19:44:24 -04:00
Richard Feldman
135a9e7a21
target baseline x86_64 for valgrind on CI 2025-10-09 21:01:09 -04:00
Richard Feldman
c01b9b9306
Incorporate Bool into builtins 2025-10-09 12:40:38 -04:00
Richard Feldman
a3e490adfd
Add caching of builtins 2025-10-09 11:14:02 -04:00
Richard Feldman
5db4461d56
Try reordering build steps 2025-10-09 09:32:18 -04:00
Richard Feldman
ec41385c9a
Merge remote-tracking branch 'origin/main' into load-builtins2 2025-10-09 08:24:08 -04:00
Richard Feldman
735af9456f
Reorder some build steps 2025-10-09 08:09:57 -04:00
Richard Feldman
7e1b879a5e
Only use optimize = Debug 2025-10-08 22:26:03 -04:00
Richard Feldman
c55008ff08
Add new builtins to snapshot tests 2025-10-08 22:01:31 -04:00
Richard Feldman
1753006ee7
Add a test to verify builtins compilation works 2025-10-08 21:44:29 -04:00
Richard Feldman
5906f59a92
Add tracy for builtin_compiler 2025-10-08 21:17:27 -04:00
Richard Feldman
e8356de829
Add minimal builtins compiler 2025-10-08 20:43:38 -04:00
Jared Ramirez
8fe09d4b80
Fix last compile issues 2025-10-02 21:00:46 -04:00
Jared Ramirez
c58afd7d39
Fix tag ext and number layouts 2025-09-30 17:47:03 -04:00
Jared Ramirez
d3207a6e71
Num type vars & generalization!!! 2025-09-30 17:41:35 -04:00
Anton-4
2107235c96
Support running specific tests (#8255)
support running specific tests
2025-09-29 19:54:20 +02:00
Luke Boswell
cb42d26e11
Roc platform host shim (#8214)
* use zig Builder to generate LLVM bc for platform host shim

* WIP

* Working embedded LLVM compilation

* lints

* Update test_shared_memory_system.zig

* Update main.zig

* Refactor out builder into separate file

* remove clang fallback, remove -Dllvm build flag

* WIP change platform header

* WIP no hardcoded platform entrypoints

* WIP no hardcoded entrypoints

* remove hardcoded interpreter shim entrypoint

* WIP multiple entrypoints

* WIP multiple entrypoints

* WIP alignment issue

* it's working!!

* cleanup

* fmt

* fix tests and snapshots

* fix cross-compile

* WIP fix linking linux

* improved debug logging in rocRun

* WIP fix linux segfaults

* cleanup stray dbgs

* fix Windows linking

* WIP remove std.debug.print in prebuilt shim

* remove libc stubs, try C shim for platform host main

* WORKING ON LINUX!!!

* WIP fixing int platform

* prevent double mapping of shared memory

* WIP

* remove clang fallback

* cleanup test platforms

* vendor linux object files for musl and gnu in test platforms

* fix windows __main export

* typo

* avoide hardcoding libc path and dynamic linker on linux

* some fixes

* try CI fix for linux ARM64

* try use system CRT for ARM64

* use absolute pats for vendored CRT

* minimal roc build

* use target os for filename not host os

* implement app stubs for test platforms

* fix glibc

* WIP cross compilation

* fix run, fix build for native

* Merge remote/main

* fix macos

* add bookends

* remove hosts

* fix cross-compile for linux on macos

* fix files paths for Windows

* Update main.zig

* test ubu 24.04 too

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* debug: log all used instructions

* fmt

* get bad instruction with gdb

* install gdb

* Revert last 4 commits

* simpler cross-compile arm64 runtime files

* add minimal cross-compilation for glibc

* simplify stub generation

* Update test_int_platform.sh

* Update ci_cross_compile.yml

* Update ci_cross_compile.yml

* try alpine3.18 x64musl files

* Claude's fix + removed CPU instructions

* fix fuzz crash empty after merge

* update snapshot

* restore full CI

* some cleanup

* remove debugging from CI - print all supported CPU instructions

* try using generic when LLVM compiles app stub

* enhanced error handling for app stub compilation using LLVM

* check machine ABI on linux

* try more debugging

* update test script to inidicate truncated error logs, temporarily display everything for arm64 linux errors

* fix missing arm64 libc search paths

* back to normal CI

* try without .git 

See https://github.com/ziglang/zig/issues/21316#issuecomment-2408071050

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* undo .git change

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* retry zig build command

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

* different retry strategy

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>

---------

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
Co-authored-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2025-09-09 13:15:23 +02:00
Richard Feldman
7caaef882d
Try a new Windows implementation 2025-08-17 21:08:01 -04:00
Richard Feldman
a71c1ee35a
zig fmt 2025-08-17 11:12:29 -04:00
Richard Feldman
a2ec3f8248
Fix some macOS stuff 2025-08-17 10:36:28 -04:00
Richard Feldman
c539c9d4da
Merge remote-tracking branch 'origin/main' into watch-fs 2025-08-16 14:08:53 -04:00
Richard Feldman
d564092307
Fix macOS cross-compilation 2025-08-15 22:22:01 -04:00
Richard Feldman
98bd002d07
Simplify the bundle exception on wasm32 2025-08-15 17:44:36 -04:00
Richard Feldman
a8dadea7dd
Split out unbundle, use Zig's zstd for wasm 2025-08-13 07:58:50 -04:00
Richard Feldman
4e6aa10280
Fix zstd linking 2025-08-12 21:14:28 -04:00
Richard Feldman
638911bb52
Move bundle logic into its own module 2025-08-12 20:25:01 -04:00
Richard Feldman
1079b9da39
Merge origin/main into downloads2 branch 2025-08-12 11:26:57 -04:00
Luke Boswell
d16b55e355
run playground integration tests in all release modes, probably breaks
CI
2025-08-12 18:53:14 +10:00
Luke Boswell
732d4a5460
zig fmt 2025-08-12 18:27:53 +10:00
Luke Boswell
79b91e4b3b
reactivate shared memory and main.zig tests 2025-08-12 18:04:16 +10:00
Luke Boswell
8365849e13
add snapshot tool to build.zig 2025-08-12 17:48:31 +10:00
Luke Boswell
1fd3825bf8
rename playground directory 2025-08-12 17:45:41 +10:00
Luke Boswell
b4188347c5
move fuzzers into test/ 2025-08-12 17:40:05 +10:00
Luke Boswell
3774b3c444
move cli into sub-dir 2025-08-12 17:33:44 +10:00
Luke Boswell
17ea3dc558
move playground main into the sub-dir 2025-08-12 17:16:16 +10:00
Luke Boswell
4f509ce357
move snapshots into test/, the tool into a sub-dir 2025-08-12 17:10:31 +10:00
Richard Feldman
33bd3f85a0
Fix lints 2025-08-11 22:52:07 -04:00
Richard Feldman
773b25b999
Add roc bundle 2025-08-11 22:52:07 -04:00
Richard Feldman
74c04672b6
bundle/unbundle with zstd 2025-08-11 22:52:07 -04:00
Luke Boswell
c9f7c4f6c0
simplify module config 2025-08-10 16:21:30 +10:00
Luke Boswell
edbc7e7d28
WIP 2025-08-10 16:10:37 +10:00
Luke Boswell
95af94ca7b
WIP 2025-08-10 14:37:47 +10:00
Luke Boswell
29784e558a
try test per module 2025-08-10 14:31:17 +10:00
Luke Boswell
85a5182ea7 remove C stub file 2025-08-07 15:14:03 +10:00
Luke Boswell
28a854af3d move test platforms around for clarity 2025-08-07 09:11:57 +10:00
Luke Boswell
10b6389758 use OS specific file extensions 2025-08-07 09:00:24 +10:00
Luke Boswell
0c131c8a53 remove uneeded windows dylibs 2025-08-07 08:11:26 +10:00
Luke Boswell
16fd98b525
disable playground-test in non-debug builds 2025-08-06 17:41:08 +10:00
Luke Boswell
95d3062e0b
add support for tracing to REPL and snapshot tool 2025-08-06 16:47:05 +10:00