]> granicus.if.org Git - clang/commit
Mark -Xclang as being a compilation-only option so that the clang driver
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 18 Apr 2016 23:12:59 +0000 (23:12 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 18 Apr 2016 23:12:59 +0000 (23:12 +0000)
commit6cd4b473d1cc4cfc4d7ba4ed6260afbc013e970a
tree14b420e57d0effa359761b44b4a7b54acd85cfaf
parentee8f776386366b2fcab609acd3c51a0011f1ef33
Mark -Xclang as being a compilation-only option so that the clang driver
doesn't warn if it's passed to a link action. This matches the behavior for
most other compilation-only options (including things like -f flags), and is
necessary to suppress warnings on systems like cmake that always pass all
compile flags to the linker.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266695 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
test/Driver/linker-opts.c