summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/platforms/WinMsvc.cmake
Commit message (Collapse)AuthorAgeFilesLines
* [CMake] [WinMsvc] Look for includes and libs in ${MSVC_BASE}/atlmfcMartin Storsjo2019-10-221-0/+4
| | | | | | | | This is necessary if building with the DIA SDK enabled. Differential Revision: https://reviews.llvm.org/D69240 llvm-svn: 375486
* [cmake] Note future cleanup in comment. NFCShoaib Meenai2019-01-311-1/+3
| | | | | | | | CMake 3.6 introduced CMAKE_TRY_COMPILE_PLATFORM_VARIABLES, which solves precisely the problem that necessitated init_user_prop, so we can switch over whenever we bump our minimum CMake requirement. llvm-svn: 352790
* [cmake] Also create lowercase extension WinSDK symlinksShoaib Meenai2018-10-051-5/+19
| | | | | | | | | | | | | Some projects rely on using libraries from the Windows SDK with their original casing, just with a lowercase extension. E.g. the WinSock2 lib is named WS2_32.Lib in the Windows SDK, and we would previously only create a ws2_32.lib symlink for it (i.e. all lowercase). Also create a WS2_32.lib symlink (i.e. original casing with lowercase extension) to cover users of this casing. As a drive-by fix, only create these symlinks when they differ from the original name to reduce the amount of noise in the library symlinks directory. llvm-svn: 343832
* [cmake] Fix clang-cl cross-compilation on macOSShoaib Meenai2017-12-151-0/+3
| | | | | | | | | | | | | | macOS paths usually start with /Users, which clang-cl interprets as a macro undefine, leading to pretty much everything failing to compile. CMake should be taught to put a -- in its compilation rules for clang-cl (and I've been meaning to submit that upstream for a while). In the meantime, however, and to support older CMake versions, we can just create a custom make rules override to fix the compilation rules. Differential Revision: https://reviews.llvm.org/D41219 llvm-svn: 320785
* [cmake] Only attempt to install MSVC system libraries on WindowsShoaib Meenai2017-12-141-7/+0
| | | | | | | | | | | | | | | | | Newer versions of CMake (I'm on 3.10, but I believe 3.9 behaves the same way) attempt to query the system for information about the VS 2017 install. Unfortunately, this query fails on non-Windows systems: cmake_host_system_information does not recognize <key> VS_15_DIR CMake isn't going to find these system libraries on non-Windows anyway (and we were previously silencing the resultant warnings in our cross-compilation toolchain), so it makes sense to just omit the attempted installation entirely on non-Windows. Differential Revision: https://reviews.llvm.org/D41220 llvm-svn: 320724
* [cmake] Add support for case-sensitive Windows SDKsShoaib Meenai2017-12-131-12/+77
| | | | | | | | | | When the Windows SDK is hosted on a case-sensitive filesystem (e.g. when compiling on Linux and not using ciopfs), we can automatically generate a VFS overlay for headers and symlinks for libraries. Differential Revision: https://reviews.llvm.org/D41156 llvm-svn: 320657
* [cmake] Support host architectures other than x64Shoaib Meenai2017-12-131-5/+28
| | | | | | | | Allow building for other architectures when cross-compiling for Windows. Differential Revision: https://reviews.llvm.org/D41158 llvm-svn: 320656
* [cmake] Explicitly set VS 2017 compatibilityShoaib Meenai2017-12-131-0/+1
| | | | | | | | | | | | | When cross-compiling using clang-cl 5.0 (which is currently the latest stable release of the compiler), the default MS compatibility level is set to VS 2013, which is too low to build LLVM. Explicitly set the compatibility level to VS 2017 to support cross-compiling LLVM for Windows using clang-cl 5.0. This will be a no-op when using clang-cl 6.0 and above, where the default MS compatibility level is already VS 2017. Differential Revision: https://reviews.llvm.org/D41157 llvm-svn: 320616
* Add a Cross-compilation toolchain file for MSVC.Zachary Turner2017-11-091-0/+219
With this patch, you can now cross-compile for Windows on non-Windows hosts. Differential Revision: https://reviews.llvm.org/D39814 This allows cross-compiling for windows on other platforms. llvm-svn: 317830
OpenPOWER on IntegriCloud