]> granicus.if.org Git - clang/commit
Disallow using -fmodules with -no-integrated-as.
authorTed Kremenek <kremenek@apple.com>
Mon, 11 Mar 2013 20:51:52 +0000 (20:51 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 11 Mar 2013 20:51:52 +0000 (20:51 +0000)
commitebf0f43f07e2fdc0e35554afb38f41c8be314b02
treee475d5c708a9564f41867feace5b0694674caf98
parentebbd7e07aa0f22722da6ed8dd3a55beed9699171
Disallow using -fmodules with -no-integrated-as.

Modules enables features such as auto-linking, and we simply do not want to
support a matrix of subtly enabled/disabled features depending on whether or
not a user is using the integrated assembler.

It isn't clear if this is the best place to do this check.  For one thing,
these kind of errors are not caught by the serialized diagnostics.

Fixes <rdar://problem/13289240>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176826 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/Tools.cpp
test/Driver/modules_integrated_as.c [new file with mode: 0644]