Jackson Wambolt
d0f8dbe85b
Clean up roc_dev_native
a bit
...
`writer` is only used by the parent process, so we don't need the
soon-to-be-forked child process to create it just to immediately get
overwritten by `execve`.
2024-06-26 01:49:13 -05:00
Jackson Wambolt
11c9b90551
Get exit code correctly
...
`status` isn't the exit code of the program - the actual exit code is
shifted left by 8 bits. We can get that with a `WIFEXITED` check to make
sure the exit code exists, followed by `WEXITSTATUS` to retrieve it.
2024-06-26 01:49:13 -05:00
Jackson Wambolt
1f0303cf53
Narrow use of unsafe in roc_run_native
...
`roc_run_native_fast` is actually the only unsafe part of the function,
so we probably don't need everything to be wrapped in an `unsafe` block.
2024-06-26 01:43:19 -05:00
Agus Zubiaga
2da7ea394b
Add --main flag to specify app/package to resolve deps from
2024-06-07 17:09:44 -03:00
Agus Zubiaga
504107f90e
Include ingested files in package tarballs
...
If a package has an ingested file import, we will now add the file
to the tarball.
2024-05-18 02:07:58 +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
4b6910c033
fmt
2024-03-15 17:36:03 +01:00
Anton-4
e97cb06e2f
adjusted spacing
2024-03-15 17:24:36 +01:00
Jonathan Schear
72916dfdf8
Add --verbose flag, move per-module test results behind it
2024-03-13 16:59:06 -04:00
Anton-4
76c47c5d6f
stylistic improvements
2024-03-09 20:47:19 +01:00
Jonathan Schear
504e00d44d
Group toplevel expects by module, run them separately
2024-03-08 14:56:32 -05:00
Norman Jäckel
cfb068ec94
Use constant ANSI code to reset boldfaced colors in reporting for CHECK and TEST command. Remove unused color_reset constant.
2024-03-06 00:47:34 +01:00
Anton-4
f620508a37
misc improvements
2024-03-04 17:10:59 +01:00
Anton-4
64113bbf72
fix expect colors
2024-02-16 17:14:49 +01:00
Brendan Hansknecht
abc4fd18cc
add --fuzz
option to roc
2024-01-25 15:42:18 -08:00
Michael Pfeifer
390808eb12
Prevent roc format from reading $PWD when --stdin or --stdout options given
2024-01-24 23:48:54 +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
Brendan Hansknecht
da301df37b
separate emitting debug info from emitting llvm-ir
2023-12-04 13:13:30 -08:00
Ayaz
aaba3f4d82
Merge branch 'main' into clippy-1.74
2023-12-02 20:09:06 -06:00
Brendan Hansknecht
e6cc43492a
rip out old dbg and setup reasonable base debug location info
2023-11-29 21:05:49 -08:00
Folkert
c019ced31d
various
2023-11-18 23:05:55 +01:00
Brendan Hansknecht
8e86640bd7
add preprocess host cli option
2023-11-06 09:31:22 -08:00
Richard Feldman
0eefbac8e3
Merge remote-tracking branch 'origin/main' into output-flag
2023-10-22 17:50:02 -04:00
Richard Feldman
fefaa92bd8
Merge pull request #5917 from roc-lang/format-stdout
...
Support `roc format` to stdout/from stdin
2023-10-22 17:47:41 -04:00
Richard Feldman
eebec8a378
Add --output to build
, default to app filename
2023-10-19 20:42:28 -04:00
Richard Feldman
a96752a65a
Add --output CLI flag for roc docs
2023-10-19 17:21:27 -04:00
Richard Feldman
e442f18e68
Support roc format
to stdout/from stdin
2023-10-18 23:02:38 -04:00
Anton-4
ac13ce57c2
Merge branch 'main' into roc-dev-report-status
2023-10-10 20:04:57 +02:00
Anton-4
bd8e621091
fmt
2023-09-11 17:41:39 +02:00
Anton-4
99cfd1fe92
removed editor, ast, markup crate
2023-09-11 16:40:52 +02:00
Folkert
8e9cf121ad
rust 1.71 clippy fixes
2023-07-25 10:46:46 +02: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
Folkert
ef39bad7c6
auto clippy fixes
2023-07-10 18:27:08 +02:00
Richard Feldman
aeca4b328e
Make a single source of truth for target strings
2023-06-20 07:48:56 -04:00
Richard Feldman
68984b59c9
Update roc build --target
to add more triples
2023-06-19 23:51:47 -04:00
Folkert
3d3243bfb5
roc dev: report the status code of the child process
2023-06-16 20:33:32 +02:00
David Smith
b9981ece1e
Only suggest subcommands if not a .roc path
2023-05-27 11:25:55 -04:00
David Smith
3930d117f4
Switch comment style to docstring
2023-05-26 10:00:30 -04:00
David Smith
1abcfb1f94
Improve error message for subcommand typo to include command suggestion
2023-05-26 10:00:30 -04:00
David Smith
ed9953f564
Clippy
2023-05-26 10:00:30 -04:00
David Smith
7435a65d0f
Remove --
requirement for roc [FILE]
to allow better messaging
2023-05-26 10:00:30 -04:00
David Smith
e1e72a3713
Updates after rebase
2023-05-15 12:31:42 -04:00
David Smith
d06d0dbf9c
Convert --prebuilt-platform to bool flag
...
With this change, it's no longer possible to cross-compile to any target
other than wasm.
2023-05-15 10:40:37 -04:00
David Smith
54c130ca1a
Address review comments
...
- Remove `num_args` call that wasn't supposed to be there
- Factor out shared value parser with non-trivial init
2023-05-15 10:40:37 -04:00
David Smith
003aacbf28
Remove unnecessary num_args
for an optional single arg
2023-05-15 10:40:37 -04:00
David Smith
0f943c3e64
Code changes for clap 4 upgrade
2023-05-15 10:40:37 -04:00
Maldus512
9e40c69d1c
From Cow to Display
2023-05-14 22:59:55 +02:00
Maldus512
0389a662e2
Fixes issue #5394
2023-05-14 17:42:18 +02:00
Folkert
66be08d073
allow configure of whether roc_alloc is generated
2023-05-01 18:41:47 +02:00