diff options
| author | İsmail Dönmez <ismail@users.noreply.github.com> | 2019-06-13 01:30:03 +0200 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-06-12 16:30:03 -0700 |
| commit | 8c49e565c0eb565fd76df76144dd78d70a211d6e (patch) | |
| tree | 2a002c9389754349ee39852b8417a7637c7a0243 /toolsrc/src/vcpkg.cpp | |
| parent | 70149722d758c21b5f49a22f3a4a0c15ea8c6852 (diff) | |
| download | vcpkg-8c49e565c0eb565fd76df76144dd78d70a211d6e.tar.gz vcpkg-8c49e565c0eb565fd76df76144dd78d70a211d6e.zip | |
Protect #pragma comment(lib, "foo") with _WIN32 checks (#6867)
lld on Linux can now process #pragma comment(lib, "foo") macros which
results in build failures on Linux when lld is used. Fix this by
protecting these macros with _WIN32 checks.
Diffstat (limited to 'toolsrc/src/vcpkg.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/toolsrc/src/vcpkg.cpp b/toolsrc/src/vcpkg.cpp index ab7586eeb..e02bdc71f 100644 --- a/toolsrc/src/vcpkg.cpp +++ b/toolsrc/src/vcpkg.cpp @@ -40,8 +40,10 @@ #include <memory> #include <random> +#if defined(_WIN32) #pragma comment(lib, "ole32") #pragma comment(lib, "shell32") +#endif using namespace vcpkg; |
