Folkert
5cf100205e
pass the environment along to the execve calls
2022-05-23 19:35:56 +02:00
Folkert
0fd382e713
use fexecve on linux
2022-05-22 22:38:51 +02:00
Folkert
b80b59125e
more rust, less libc
2022-05-22 14:33:30 +02:00
Folkert
ddc67c2a19
implement argument passing
2022-05-22 14:19:53 +02:00
Folkert
95fce168a4
Merge remote-tracking branch 'origin/trunk' into roc-run-from-ram
2022-05-22 13:41:00 +02:00
Folkert
d4e475338d
try to use in-memory files in linux
2022-05-22 13:17:30 +02:00
Folkert
e81875cca7
use execve instead of fexecve
2022-05-18 21:42:49 +02:00
Brian Carroll
aaea254e8f
Pass precompiled host bytes to gen_wasm in CLI
2022-05-15 11:11:08 +01:00
Folkert
f154f84d5a
WIP
2022-05-11 23:10:36 +02:00
Richard Feldman
b7c7bbaf1d
Make roc_docs responsible for build dir constant
2022-05-08 22:03:15 -04:00
Richard Feldman
437f7dcf8b
Drop unnecessary .index(1)
2022-05-08 22:03:15 -04:00
Richard Feldman
51ee101bd1
Merge remote-tracking branch 'origin/trunk' into cli-max-threads
2022-05-07 16:23:41 -04:00
Folkert
abbe8ecd24
hook max-threads up for roc check
2022-05-07 14:32:38 +02:00
Folkert
2066999908
get the threading info into file.rs
2022-05-07 14:01:34 +02:00
Folkert
56e3438c61
add max-threads flag
2022-05-07 13:50:01 +02:00
Richard Feldman
81bdc507f5
Pass args from clap to roc
/roc run
child processes
...
This works much better than the previous "arg index"
approach, especially with subcommands like `roc run`
2022-05-06 17:21:38 -04:00
Richard Feldman
e3865a3679
Use matches_of_os for file paths
2022-05-06 17:13:04 -04:00
Richard Feldman
71fa8c6ee2
Allow args to pass through roc run
to application
2022-05-06 17:13:04 -04:00
Richard Feldman
8849e5cdd1
Improve false interpreter missing CLI arg message
2022-05-06 17:13:03 -04:00
Richard Feldman
281602d664
Merge pull request #3003 from rtfeldman/threading
...
Explicit single vs multithreading for build functions
2022-05-06 15:07:33 -04:00
Richard Feldman
d337a80ff5
Use matches.value_of_t
2022-05-05 18:00:47 -04:00
Richard Feldman
da3490be8b
Make sure CLI subcommands support the right flags
2022-05-05 17:47:32 -04:00
Richard Feldman
a836570a7b
Remove --link option from CLI
2022-05-05 17:36:25 -04:00
Richard Feldman
dd460fb818
Use single-threaded builds in tests
2022-05-05 14:42:36 -04:00
Ayaz Hafiz
ef877364d4
Allow invalid UTF-8 for roc format
argument
...
Presumably with a new version of clap that was introduced, we must now
specify that invalid-utf8 is permitted in order to run `matches.values_of_os`
as we do on line 174 of cli/src/main.rs:
```rust
Some((CMD_FORMAT, matches)) => {
let maybe_values = matches.values_of_os(DIRECTORY_OR_FILES);
```
Otherwise, clap panics:
```
thread 'main' panicked at 'Must use `Arg::allow_invalid_utf8` with `_os` lookups at `DIRECTORY_OR_FILES`', cli/src/main.rs:174:40
```
2022-05-05 09:04:34 -04:00
Anton-4
108ad9bb86
fix docs generation
2022-05-04 17:45:36 +02:00
Anton-4
dc8a6abf22
updated clap
2022-05-04 14:41:02 +02:00
Richard Feldman
6c1e8d3789
fix typo
2022-04-20 17:14:22 -04:00
Richard Feldman
41fafd85fd
C L I P P Y
2022-04-20 17:06:20 -04:00
Richard Feldman
729aab21a1
Don't try to mem::forget a reference
2022-04-20 17:06:17 -04:00
Richard Feldman
4d11e7cbe6
Revamp notes printed after compilation finishes.
2022-04-20 17:05:21 -04:00
Richard Feldman
62484d3890
Add roc run
to run even if there are build errors.
2022-04-20 15:44:39 -04:00
Richard Feldman
a47b3be9c0
Revise some CLI flag descriptions
2022-04-20 11:42:19 -04:00
Richard Feldman
84727b31e5
Only support --target with roc build
2022-04-20 08:23:44 -04:00
Richard Feldman
9a89287365
Don't specify a default value for --precompiled-host
...
If we do, it's treated as always present even if it's
not passed in, which overrides the default of
"infer based on target."
2022-04-15 16:23:27 -04:00
Richard Feldman
f56972742f
Default to not precompiled
2022-04-15 10:21:17 -04:00
Richard Feldman
4065645d3c
Fix references to obsolete CLI flags
2022-04-15 08:46:12 -04:00
Richard Feldman
03c189c049
c-c-c-c-clippy! (turn and face the strange)
2022-04-14 21:52:00 -04:00
Richard Feldman
4f10ccc5d1
Rename Target::Host to Target::System
2022-04-14 20:44:23 -04:00
Richard Feldman
1f93973dbf
Allow --precompiled-host=false
2022-04-14 20:43:30 -04:00
Richard Feldman
6b213be997
Minor formatting
2022-04-14 20:35:42 -04:00
Richard Feldman
3daba1f6c0
Introduce --linker flag
2022-04-14 20:32:19 -04:00
Richard Feldman
2be9825b7b
Add --force-roc-linker and --legacy-linker
2022-04-14 20:19:27 -04:00
Richard Feldman
e1a88f190c
Add a target triple for 32-bit musl linux
2022-04-13 01:21:12 -04:00
Richard Feldman
9f8be769fb
Specify environments on linux targets
2022-04-13 01:21:12 -04:00
Richard Feldman
746fb6ce88
Make --target flags be linux32 and linux64
2022-04-13 01:21:12 -04:00
Richard Feldman
76e98f7add
Add Into<Triple> for Target
2022-04-13 01:21:12 -04:00
Brendan Hansknecht
76ffb4f278
Add --no-link flag for more complex linking cases
2022-03-29 18:20:29 -07:00
Folkert
311e464b70
add load_internal
2022-03-23 15:18:22 +01:00
Folkert
d8fa2b8d92
stop passing stdlib (use lazy_static)
2022-03-22 19:53:02 +01:00