DriverPipeline: Fix 'unused arguments' warnings from Clang
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 13 Mar 2016 04:28:11 +0000 (15:28 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Wed, 16 Mar 2016 20:43:09 +0000 (07:43 +1100)
commit46f9a476e17714e27d893b491cc0dcf68c745249
tree58d1da65acc2a712e76fe8f2f52d29cb7bf36e39
parent5d98b8bf249fab9bb0be6c5d4e8ddd4578994abb
DriverPipeline: Fix 'unused arguments' warnings from Clang

When using Clang as the C compiler, over 100 tests were failing
due to Clang reporting that some command line arguments were not
being used. These warnings only occur when Clang is compiling
assembler files which happens in two places, one of which already
conditionally adding `-Qunused-arguments` to the command line when
the compiler was Clang. This fixes the other.

Test Plan: validate with clang as the C compiler

Reviewers: bgamari, hvr, austin, rwbarton

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1998

GHC Trac Issues: #11684
compiler/main/DriverPipeline.hs