1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-30 02:52:59 +03:00
juvix/app/Commands/Dev/Core/Compile
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
..
Base.hs Pass through compile optimization flag to C compiler and disable optimization for --debug (#2106) 2023-05-19 15:29:52 +01:00
Options.hs Direct translation from normalized JuvixCore to VampIR (#2086) 2023-05-19 14:43:45 +02:00