Suffixing #pragma comment(lib) library names with .lib if necessary. This matches MSVC behavior, as well as allows us to properly link libraries such as the ones provided by the MSDN examples.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182647 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaAttr.cpp b/lib/Sema/SemaAttr.cpp
index bc19b38..943054b 100644
--- a/lib/Sema/SemaAttr.cpp
+++ b/lib/Sema/SemaAttr.cpp
@@ -272,10 +272,9 @@
case PCK_Linker:
Consumer.HandleLinkerOptionPragma(Arg);
return;
- case PCK_Lib: {
+ case PCK_Lib:
Consumer.HandleDependentLibrary(Arg);
return;
- }
case PCK_Compiler:
case PCK_ExeStr:
case PCK_User: