1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-30 11:03:17 +03:00
juvix/app/Commands/Dev/Core
Paul Cadman 4a1c7a101e
Pass through compile optimization flag to C compiler and disable optimization for --debug (#2106)
In this PR we pass through the `juvix compile` optimization flag to the
C compiler in the native compilation.

NB: Clang supports -On for any positive n. -O4 and higher is equivalent
to -O3

Also we disable optimizations when the `-g` / `--debug` option is
specified.

* Closes https://github.com/anoma/juvix/issues/2104

---------

Co-authored-by: Lukasz Czajka <lukasz@heliax.dev>
2023-05-19 15:29:52 +01:00
..
Asm JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
Compile Pass through compile optimization flag to C compiler and disable optimization for --debug (#2106) 2023-05-19 15:29:52 +01:00
Eval Option --show-args-num (#1946) 2023-03-30 12:23:40 +01:00
FromConcrete Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Normalize Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Read Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Repl Option --show-args-num (#1946) 2023-03-30 12:23:40 +01:00
Strip JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
Asm.hs Support more paths (#2000) 2023-04-19 15:56:48 +01:00
Compile.hs Direct translation from normalized JuvixCore to VampIR (#2086) 2023-05-19 14:43:45 +02:00
Eval.hs Support more paths (#2000) 2023-04-19 15:56:48 +01:00
FromConcrete.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Normalize.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Options.hs Direct translation from normalized JuvixCore to VampIR (#2086) 2023-05-19 14:43:45 +02:00
Read.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Repl.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Strip.hs Support more paths (#2000) 2023-04-19 15:56:48 +01:00