Commit 5e383469 authored by dterei's avatar dterei

Get correct options when calling 'clang' inplace of 'as' (#5903)

parent 47a9a997
......@@ -1176,14 +1176,17 @@ runPhase As input_fn dflags
= do
llvmVer <- io $ figureLlvmVersion dflags
return $ case llvmVer of
Just n | n >= 30 -> SysTools.runClang
_ -> SysTools.runAs
-- using cGccLinkerOpts here but not clear if
-- opt_c isn't a better choice
Just n | n >= 30 ->
(SysTools.runClang, cGccLinkerOpts)
_ -> (SysTools.runAs, getOpts dflags opt_a)
| otherwise
= return SysTools.runAs
= return (SysTools.runAs, getOpts dflags opt_a)
as_prog <- whichAsProg
let as_opts = getOpts dflags opt_a
(as_prog, as_opts) <- whichAsProg
let cmdline_include_paths = includePaths dflags
next_phase <- maybeMergeStub
......
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