Commit 2c5cd3f1 authored by Finn Teegen's avatar Finn Teegen
Browse files

Fix language extension not globally enabling conditional compiling

parent 2f18d703
......@@ -494,7 +494,11 @@ extDescriptions = map toDescr extensions
where
toDescr (flag, name, desc)
= (name, desc,
\ opts -> opts { optExtensions = addFlag flag (optExtensions opts)})
\opts -> let cppOpts = optCppOpts opts
in opts { optCppOpts =
cppOpts { cppRun = cppRun cppOpts || flag == CPP }
, optExtensions = addFlag flag (optExtensions opts)
})
caseModeDescriptions :: OptErrTable Options
......
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