From a78e589b08c7f340608e2044f8b5354cf8892445 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 28 Oct 2010 20:36:23 +0000 Subject: Driver/IA: Ignore -L for now, which users shouldn't be using for semantic effect. llvm-svn: 117600 --- clang/lib/Driver/Tools.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/Driver/Tools.cpp') diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 021c7cb7d37..cdaea985876 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -784,6 +784,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, if (Value == "-force_cpusubtype_ALL") { // Do nothing, this is the default and we don't support anything else. + } else if (Value == "-L") { + // We don't support -L yet, but it isn't important enough to error + // on. No one should really be using it for a semantic change. + D.Diag(clang::diag::warn_drv_unsupported_option_argument) + << A->getOption().getName() << Value; } else { D.Diag(clang::diag::err_drv_unsupported_option_argument) << A->getOption().getName() << Value; -- cgit v1.2.3