louise
The Louise language: compiler, runtime, std, tooling
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#115 · main · 21 min 41 s
0Étoiles
0Forks
40Issues
Codegen: entry selector moves to LOUISE_ENTRY, argv is the program's (issue #287)
Generated main read the test-entry selector from argv[1]: a native binary given a numeric argument took it for a selector, hit tl_entry's default case, and exited 0 without running main. The selector exists only for louise test --native, so move it to the LOUISE_ENTRY environment variable, which user argv cannot collide with. The process's arguments are now entirely the program's own, and os.args reports all of them.
Parents bdee626
5 fichiers modifiés, 59 ajouts, 6 suppressions
crates/louise/src/test.rs+4−3crates/louise/tests/cli.rs+40−0crates/louise/tests/fixtures/args.lse+9−0crates/louise_codegen_c/src/emit/mod.rs+5−2docs/runtime-abi.md+1−1