Commit cc2bda50 authored by Adithya Kumar's avatar Adithya Kumar 🖐 Committed by Marge Bot
Browse files

Compiling with -S and -fno-code no longer panics (fixes #17143)

parent 535a88e1
Pipeline #11447 passed with stages
in 403 minutes and 34 seconds
......@@ -385,6 +385,10 @@ checkOptions mode dflags srcs objs = do
StopBefore HCc | hscTarget dflags /= HscC
-> throwGhcException $ UsageError $
"the option -C is only available with an unregisterised GHC"
StopBefore (As False) | ghcLink dflags == NoLink
-> throwGhcException $ UsageError $
"the options -S and -fno-code are incompatible. Please omit -S"
_ -> return ()
-- Verify that output files point somewhere sensible.
main = print "Hello world"
ghc: the options -S and -fno-code are incompatible. Please omit -S
Usage: For basic information, try the `--help' option.
\ No newline at end of file
......@@ -277,3 +277,5 @@ test('T16737',
expect_broken_for(16541, ['ghci'])],
compile_and_run, ['-optP=-isystem -optP=T16737include'])
test('T17143', exit_code(1), run_command, ['{compiler} T17143.hs -S -fno-code'])
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment