diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2022-08-12 13:50:30 +0100 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-10-01 18:16:22 +0100 |
commit | 813e95d3477e16b1537f8941d4e007b2339c4da4 (patch) | |
tree | f7912a4213b2406adeed6e33335342a7e2ab9830 /testsuite/tests/driver/fat-iface/fat015.stderr | |
parent | 45dbb86ed14d3c317837552b1fa1836ba2fe6cde (diff) | |
download | haskell-wip/ghc-fat-interface.tar.gz |
Teach -fno-code about -fprefer-byte-codewip/ghc-fat-interface
This patch teachs the code generation logic of -fno-code about
-fprefer-byte-code, so that if we need to generate code for a module
which prefers byte code, then we generate byte code rather than object
code.
We keep track separately which modules need object code and which byte
code and then enable the relevant code generation for each. Typically
the option will be enabled globally so one of these sets should be empty
and we will just turn on byte code or object code generation.
We also fix the bug where we would generate code for a module which
enables Template Haskell despite the fact it was unecessary.
Fixes #22016
Diffstat (limited to 'testsuite/tests/driver/fat-iface/fat015.stderr')
-rw-r--r-- | testsuite/tests/driver/fat-iface/fat015.stderr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/tests/driver/fat-iface/fat015.stderr b/testsuite/tests/driver/fat-iface/fat015.stderr index ba51cd4ab0..8fb5918730 100644 --- a/testsuite/tests/driver/fat-iface/fat015.stderr +++ b/testsuite/tests/driver/fat-iface/fat015.stderr @@ -1,6 +1,6 @@ -[1 of 6] Compiling FatQuote ( FatQuote.hs, FatQuote.o, FatQuote.dyn_o ) -[2 of 6] Compiling FatQuote1 ( FatQuote1.hs, FatQuote1.o, FatQuote1.dyn_o ) +[1 of 6] Compiling FatQuote ( FatQuote.hs, FatQuote.o, FatQuote.dyn_o, interpreted ) +[2 of 6] Compiling FatQuote1 ( FatQuote1.hs, interpreted ) [3 of 6] Compiling FatQuote2 ( FatQuote2.hs, FatQuote2.o, FatQuote2.dyn_o ) -[4 of 6] Compiling FatTH1 ( FatTH1.hs, FatTH1.o, FatTH1.dyn_o ) -[5 of 6] Compiling FatTH2 ( FatTH2.hs, FatTH2.o, FatTH2.dyn_o ) +[4 of 6] Compiling FatTH1 ( FatTH1.hs, nothing ) +[5 of 6] Compiling FatTH2 ( FatTH2.hs, nothing ) [6 of 6] Compiling FatTHTop ( FatTHTop.hs, nothing ) |