Commit graph

240 commits

Author SHA1 Message Date
Brendan Hansknecht
6b191fcfc2
stop zig from automatically stripping with opt-size 2023-10-23 13:50:35 -07:00
Anton-4
90865c6b51
cleanup CI, fix unrecognized --strip 2023-10-23 13:50:34 -07:00
Luke Boswell
4f3ed13929
fix windows linking remove --strip option 2023-10-23 13:50:32 -07:00
Brendan Hansknecht
40a40ef6d2
get examples working 2023-10-23 13:50:31 -07:00
Richard Feldman
7b83dd6ef9
Fix some UTF-16 on Windows 2023-10-19 22:49:55 -04:00
Richard Feldman
eebec8a378
Add --output to build, default to app filename 2023-10-19 20:42:28 -04:00
Richard Feldman
eb135637ef
Compute total_problems rather than asking for it 2023-10-14 21:49:06 -04:00
Richard Feldman
ebd1b16597
Choose CodeModel using roc target, not Rust target 2023-10-10 20:33:27 -04:00
Anton-4
d7a27acfd7
prevent+improve repl erros 2023-09-30 20:34:33 +02:00
Anton-4
cb13fc6092
Merge pull request #5857 from roc-lang/rust-1-71-1-upgrade
rust 1.71.1 upgrade
2023-09-26 17:27:08 +02:00
Anton-4
f078204c1f
rust 1.71.1 upgrade 2023-09-26 12:08:16 +02:00
Brendan Hansknecht
d0e1da40ac
Allow rust binaries to remove dead code
Note: we may need to add a special init function to stop linker based dead code elimination.
That or special linker commands to keep `roc_*` functions.
Currently this is working on my x86 machine without it though.

Guide here if needed on the init function:
https://stackoverflow.com/questions/43712979/how-to-export-a-symbol-from-a-rust-executable
2023-09-25 10:23:00 -07:00
Anton-4
0fea1ec227
Merge pull request #5734 from roc-lang/fix-nixos-repl
fix `Couldn't find libgcc_s.so.1!`
2023-08-11 20:03:09 +02:00
Folkert
7fb4b60b21
move around hostexposedalias logic 2023-08-09 15:09:03 +02:00
Anton-4
cb9a348871
cleanup 2023-08-08 20:09:15 +02:00
Anton-4
ec3bcb33f6
fmt, clippy, nix aliases fix 2023-08-08 20:03:21 +02:00
Anton-4
387b6927d5
libgcc_s.so.1 fix #5732 2023-08-08 19:55:38 +02:00
Richard Feldman
57fc441bf9
Fix macos ld warning 2023-07-29 21:06:04 -04:00
Anton-4
f2137c90ab
upgrade to rust 1.70.0 2023-07-25 17:44:46 +02:00
Ayaz Hafiz
b5db3f68e1
Add experimental flag for roc_erase 2023-07-12 14:46:37 -05:00
Ayaz Hafiz
9702f30a61
Support erased functions in debug mode 2023-07-12 14:46:37 -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
Richard Feldman
1d5c5b25ec
Merge remote-tracking branch 'origin/main' into linux64 2023-07-11 11:33:31 -04:00
Richard Feldman
19fc7775c7
Merge pull request #5644 from roc-lang/aarch64-code-model-fix
aarch64 linux error fix
2023-07-11 11:22:57 -04:00
Anton-4
b92bc4922e
segfault codemodel workaround 2023-07-11 16:18:22 +02:00
Folkert
ef39bad7c6
auto clippy fixes 2023-07-10 18:27:08 +02:00
Anton-4
72c85efc83
switch to rust 1.67 2023-07-10 18:25:52 +02:00
Anton-4
03af6749ed
fmt 2023-07-05 19:39:20 +02:00
Anton-4
781fba8f73
aarch64 linux error fix
This fixes the error relocation R_AARCH64_MOVW_UABS_G0_NC cannot be used against local symbol
2023-07-05 19:34:00 +02:00
Folkert de Vries
fa721d9b29
Merge pull request #5600 from roc-lang/compiler-rt-cleanup
Compiler-rt cleanup macos
2023-06-27 21:12:55 +02:00
Folkert
8738c95d6f
give 0 as a value to our enum attributes 2023-06-27 00:07:33 +02:00
Brendan Hansknecht
4f97ab2965
remove old compiler-rt workarounds for macos 2023-06-24 17:27:11 -07:00
Richard Feldman
b8d723edcb
Don't use CodeModel::Large anymore
This breaks certain use cases of building with --no-link
and an aarch64 target and then linking with lld (via zig cc)
(see "aarch64 linux target" thread on Zulip)

Also it seems to be unnecessary in practice on LLVM 13,
as the comment suggests!
2023-06-21 10:46:52 -04:00
Richard Feldman
eea43daeb6
Revert "Improve backwards compatibility with old .rh files"
This reverts commit f6a6bff728.
2023-06-20 09:23:08 -04:00
Richard Feldman
f6a6bff728
Improve backwards compatibility with old .rh files 2023-06-20 09:09:38 -04:00
Ayaz Hafiz
41597cbab7
Do not make LayoutInterner mutable 2023-06-17 18:13:03 -05:00
Ayaz Hafiz
e2482c8b1d
Unused var 2023-06-06 15:48:01 -05:00
Ayaz Hafiz
6702efaf29
Differentiate generating final IR and dumping it to an object in cgen
So that we can see how much time it takes to build LLVM IR vs run it
through LLVM. For the dev backends this is immaterial
2023-06-03 17:54:09 -05:00
David Smith
1aa45240fd
Update --prebuilt-platform usage in comments and error messages. 2023-05-15 12:53:58 -04:00
Richard Feldman
b42da4ae8d
Revert "remove undefined -dynamic_lookup"
This reverts commit bd6ae25cbc.
2023-05-08 15:46:53 -04:00
Folkert de Vries
deb1e9952d
Merge pull request #5365 from roc-lang/dev-backend-cli
Dev backend list tests
2023-05-07 14:47:39 +02:00
Jarl André Hübenthal
e5eb5717ea
replace panic! with internal_error! in compiler modules 2023-05-03 22:11:21 +02:00
Folkert
37eec2b7c2
allow configure of whether roc_alloc is generated 2023-05-02 22:31:49 +02:00
Folkert
66be08d073
allow configure of whether roc_alloc is generated 2023-05-01 18:41:47 +02:00
Brendan Hansknecht
e520eaddcc
Merge pull request #5333 from roc-lang/wasm-flow
Fix misc wasm compilation issues
2023-04-29 20:43:58 +00:00
Anton-4
ff6ec21a09
Merge pull request #5324 from roc-lang/rust_version_upgrade
WIP Rust version upgrade
2023-04-29 18:01:04 +02:00
Anton-4
85dce119c7
downgrade to 1.66.1
going from 1.66.1 to 1.67.1 causes a segemntation fault in a wasm test, I expect because the size of Stmt and Expr have changed with that version.
2023-04-26 20:07:46 +02:00
Brendan Hansknecht
44a1b5d41f
fix warning when linking 2023-04-26 08:24:35 -07:00
Brendan Hansknecht
b26fc9f1af
make wasm32-wasi default target given zig bug is fixed 2023-04-26 07:43:12 -07:00
Brendan Hansknecht
dd8914a75c
corret CodeGenBackend::Wasm to only be dev wasm backend 2023-04-26 07:29:32 -07:00