Auto-link with ole32.dll to simplify building LLVM.dll
authorReid Kleckner <rnk@google.com>
Tue, 12 Jan 2016 18:33:49 +0000 (18:33 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 12 Jan 2016 18:33:49 +0000 (18:33 +0000)
Patch by Jakob Bornecrantz

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257499 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/Path.inc

index 4e48412..5ef77b1 100644 (file)
@@ -38,6 +38,7 @@ typedef int errno_t;
 
 #ifdef _MSC_VER
 # pragma comment(lib, "advapi32.lib")  // This provides CryptAcquireContextW.
+# pragma comment(lib, "ole32.lib")     // This provides CoTaskMemFree
 #endif
 
 using namespace llvm;