-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[vs_platform_toolset msbuild] MSVC ClangCL [Only TEST, no merge] #11140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
b134de4
[ffmpeg] Fix ffmpeg[opencl, openssl, lzma] static build failed (#8797)
LilyWangL 0ed9644
[boost-modular-build] Fix lack of arm64-linux support (#10814)
ddavidhahn 92ccdbf
[scripts] add new function vcpkg_fixup_pkgconfig (#9861)
Neumann-A c0f2035
[vcpkg] Copy macos pipelines into azure-pipelines.yml
BillyONeal 1c47e88
[opencc] Add new port (#8474)
myd7349 313efa7
[uchardet] Add new port (#8477)
myd7349 d787346
[vcpkg] Add support for VCPKG_BINARY_SOURCES and --x-binarysource=<> …
ras0219-msft ced565a
[vcpkg] Small touchups for vcpkg unit tests (#11068)
horenmar 5865192
[vcpkg] Correctly record default feature list in BinaryParagraphs. Fi…
ras0219-msft b78c3af
Bump macos build timeouts. (#11090)
BillyONeal c668427
[vcpkg baseline] Ignore mlpack on macOS (#11091)
strega-nil d4befcb
[cpprestsdk] Update to v2.10.16 (#11018)
BillyONeal b8df408
[harfbuzz] Change build depends from freetype to freetype[core] (#11082)
Ghabry dec7509
[vcpkg] Warn on unmatched removal with reasonable alternative (#11083)
ras0219-msft 017d424
[pcl] Fix link to libpng (#11047)
JackBoosY 60133a6
[vcpkg_acquire_msys] Fix undefined working dir. (#11102)
Neumann-A 893b721
[qt5] reactivate qt5-activeqt in CI by adding a fake dependency to qt…
Neumann-A 8ec8552
[armadillo] Add dependent port superlu on osx (#11063)
JackBoosY dab9545
[msbuild] Hotfix /p:UseEnv=True to be a port-local setting (#11058)
MVoz e0a9169
Fix Catch2 include path in documentation (#11007)
horenmar d1cee7e
[libqcow] Initial port (#11036)
VelocityRa cf2f23c
[abseil] Use std:: types when feature cxx17 is enabled (#11039)
cneumann dac7a94
[qt5] fix wrong versions in some CONTROL files (#11026)
Neumann-A f2864e3
[Arrow] Add filesystem feature (#11016)
isaacbrodsky 82b622d
[metrohash] installation fix (#10992)
kreuzerkrieg 96831f6
[nana] fixed build for windows (#10936)
Darkcacok 6d54a81
[alembic] linux fixes (#10912)
fabiencastan b218f3c
[mstch] Add new port (#11020)
curoky ce4ddf8
[civetweb] Update to version 1.12 (#10591)
gjasny ab2180e
[vcpkg] Onboard Linux to VMSS, open 'git' port, and switch back to Az…
BillyONeal c28837a
[argh] Patch argh to not take the name 'license'.
BillyONeal 0514731
[qt-advanced-docking-system] Patch qt-advanced-docking-system to not …
BillyONeal 3c479e1
[idevicerestore] Mark as failing because it wants <libgen.h> which do…
BillyONeal dd1373a
[OpenBLAS] Upgrade to 0.3.9 + a patch to fix AVX512 (which is now pre…
BillyONeal d78dec3
[Ceres] Set LIB_SUFFIX for Ceres to ensure portfile and build agree.
BillyONeal 9f60f19
[glad] Pass path to python explicitly to work on default Ubuntu 18.04…
BillyONeal 2d2ff29
[imgui] Add feature bindings and remove feature example (#10253)
JackBoosY 2028db1
[opencv4] Add GTK support for opencv4 (#10886)
shelper b913992
[azure-kinect-sensor-sdk] Disable parallel configure due to source di…
ras0219 86eb4dd
[libbson/mongo-c-driver] Update to 1.16.1 (#10010)
JackBoosY 53b43a7
[nowide] Add new port (#11066)
tats-u b21de70
[vcpkg] Add new function vcpkg_copy_tools (#8749)
myd7349 973da39
Update windows.cmake
MVoz c85ecd7
Update x64-windows-static.cmake
MVoz 5db05c5
Update x64-windows.cmake
MVoz e65cd72
Update x86-windows.cmake
MVoz 263a3ac
Update vcpkg_build_msbuild.cmake
MVoz 360d034
Update vcpkg_install_msbuild.cmake
MVoz d166f7e
Update x64-windows.cmake
MVoz b580cc9
microsoft/master
MVoz 45b0029
Add files via upload
MVoz e98d139
Update x86-windows.cmake
MVoz b737550
Update x64-windows.cmake
MVoz 1004c2a
Update x64-windows-static.cmake
MVoz 8e7f6b8
Update x64-windows-clang.cmake
MVoz 9b39aea
Update CONTROL
MVoz de723d9
Update CONTROL
MVoz 2732155
Update x64-windows.cmake
MVoz e3c2b8b
Update vcpkg_install_msbuild.cmake
MVoz 5bd6627
Update vcpkg_build_msbuild.cmake
MVoz 4f25851
Update windows.cmake
MVoz 4f1e5d2
Update windows.cmake
MVoz 02c5b82
Update windows.cmake
MVoz bc9a09a
Update vcpkg_configure_cmake.cmake
MVoz dd691f9
Update vcpkg_build_cmake.cmake
MVoz 5dda90e
Update vcpkg_build_cmake.cmake
MVoz 3874045
Update vcpkg_build_cmake.cmake
MVoz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| Source: mpir | ||
| Version: 3.0.0-7 | ||
| Version: 3.0.0-8 | ||
| Homepage: https://github.com/wbhart/mpir | ||
| Description: Multiple Precision Integers and Rationals. | ||
| Supports: !uwp | ||
| Supports: !uwp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| Source: pbc | ||
| Version: 0.5.14-2 | ||
| Version: 0.5.14-3 | ||
| Build-Depends: mpir (windows) | ||
| Homepage: https://crypto.stanford.edu/pbc | ||
| Description: Pairing-Based Crypto library provides low-level routines for pairing-based cryptosystems. | ||
| Supports: !uwp | ||
| Supports: !uwp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -95,7 +95,7 @@ function(vcpkg_install_msbuild) | |
| cmake_parse_arguments( | ||
| _csc | ||
| "USE_VCPKG_INTEGRATION;ALLOW_ROOT_INCLUDES;REMOVE_ROOT_INCLUDES;SKIP_CLEAN" | ||
| "SOURCE_PATH;PROJECT_SUBPATH;INCLUDES_SUBPATH;LICENSE_SUBPATH;RELEASE_CONFIGURATION;DEBUG_CONFIGURATION;PLATFORM;PLATFORM_TOOLSET;TARGET_PLATFORM_VERSION;TARGET" | ||
| "SOURCE_PATH;PROJECT_SUBPATH;INCLUDES_SUBPATH;LICENSE_SUBPATH;RELEASE_CONFIGURATION;DEBUG_CONFIGURATION;PLATFORM;PLATFORM_TOOLSET;VS_PLATFORM_TOOLSET;TARGET_PLATFORM_VERSION;TARGET" | ||
| "OPTIONS;OPTIONS_RELEASE;OPTIONS_DEBUG" | ||
| ${ARGN} | ||
| ) | ||
|
|
@@ -122,6 +122,9 @@ function(vcpkg_install_msbuild) | |
| if(NOT DEFINED _csc_PLATFORM_TOOLSET) | ||
| set(_csc_PLATFORM_TOOLSET ${VCPKG_PLATFORM_TOOLSET}) | ||
| endif() | ||
| if(NOT DEFINED _csc_VS_PLATFORM_TOOLSET) | ||
| set(_csc_VS_PLATFORM_TOOLSET ${VS_PLATFORM_TOOLSET}) | ||
| endif() | ||
| if(NOT DEFINED _csc_TARGET_PLATFORM_VERSION) | ||
| vcpkg_get_windows_sdk(_csc_TARGET_PLATFORM_VERSION) | ||
| endif() | ||
|
|
@@ -132,21 +135,55 @@ function(vcpkg_install_msbuild) | |
| list(APPEND _csc_OPTIONS | ||
| /t:${_csc_TARGET} | ||
| /p:Platform=${_csc_PLATFORM} | ||
| /p:PlatformToolset=${_csc_PLATFORM_TOOLSET} | ||
| /p:PreferredToolArchitecture=${_csc_PLATFORM} | ||
| /p:VCPkgLocalAppDataDisabled=true | ||
| /p:UseIntelMKL=No | ||
| /p:WindowsTargetPlatformVersion=${_csc_TARGET_PLATFORM_VERSION} | ||
| /p:TargetPlatformVersion=${_csc_TARGET_PLATFORM_VERSION} | ||
| /verbosity:n ##q[uiet], m[inimal], n[ormal], d[etailed] e diag[nostic] | ||
| /nologo | ||
| /p:VcpkgTriplet=${TARGET_TRIPLET} | ||
| "/p:UseInteloneMKL=No" | ||
| /m | ||
| ) | ||
|
|
||
| if(VS_PLATFORM_TOOLSET MATCHES "Clang") | ||
| list(APPEND _csc_OPTIONS | ||
| "/p:BasePlatformToolset=${VCPKG_PLATFORM_TOOLSET}" | ||
| "/p:PlatformToolset=${VS_PLATFORM_TOOLSET}" | ||
| "/p:UseIntelMKL=No" | ||
| "/p:UseClangCl=true" | ||
| "/p:UseLldLink=true" | ||
| "/p:UseLlvmLib=false" | ||
| "/p:TrackFileAccess=false" | ||
| "/p:LibToolExe=lib.exe" | ||
| "/p:ClangClAdditionalOptions=-Wno-gcc-compat -Xclang -fopenmp -Xclang -flto=thin -Wextra -Wno-unused-variable -verbose" | ||
| "/p:LldLinkAdditionalOptions=-debug -force:multipleres -fuse-ld=lld-link -lib" | ||
| ) | ||
| elseif(VS_PLATFORM_TOOLSET MATCHES "Intel") | ||
| list(APPEND _csc_OPTIONS | ||
| "/p:BasePlatformToolset=${VCPKG_PLATFORM_TOOLSET}" | ||
| "/p:PlatformToolset=${VS_PLATFORM_TOOLSET}" | ||
| "/p:UseIntelMKL=Yes" | ||
| ) | ||
| else() | ||
| list(APPEND _csc_OPTIONS | ||
| "/p:PlatformToolset=${VCPKG_PLATFORM_TOOLSET}" | ||
| "/p:UseIntelMKL=No" | ||
| ) | ||
| endif() | ||
|
|
||
| if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") | ||
| # Disable LTCG for static libraries because this setting introduces ABI incompatibility between minor compiler versions | ||
| # TODO: Add a way for the user to override this if they want to opt-in to incompatibility | ||
| list(APPEND _csc_OPTIONS /p:WholeProgramOptimization=false) | ||
| endif() | ||
|
|
||
| if(_csc_USE_VCPKG_INTEGRATION) | ||
| list(APPEND _csc_OPTIONS /p:ForceImportBeforeCppTargets=${SCRIPTS}/buildsystems/msbuild/vcpkg.targets /p:VcpkgApplocalDeps=false) | ||
| list(APPEND _csc_OPTIONS | ||
| "/p:ForceImportBeforeCppTargets=${SCRIPTS}/buildsystems/msbuild/vcpkg.targets" | ||
| "/p:VcpkgApplocalDeps=false" | ||
| "/p:VcpkgTriplet=${TARGET_TRIPLET}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1. That one is truely missing. |
||
| ) | ||
| endif() | ||
|
|
||
| get_filename_component(SOURCE_PATH_SUFFIX "${_csc_SOURCE_PATH}" NAME) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| set(VCPKG_TARGET_ARCHITECTURE x64) | ||
| set(VCPKG_CRT_LINKAGE dynamic) | ||
| set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
|
||
| set(VCPKG_PLATFORM_TOOLSET v142) | ||
|
|
||
| set(VS_PLATFORM_TOOLSET "ClangCL,host=x64") | ||
| #or | ||
| ##set(VS_PLATFORM_TOOLSET "LLVM_v142,host=x64" #"v142,cuda=10.1,host=x64" #"v142,host=x64,v=14.16#version=14.11 | ||
|
|
||
| if(DEFINED VS_PLATFORM_TOOLSET) | ||
| set(VCPKG_POLICY_SKIP_ARCHITECTURE_CHECK enabled) | ||
| endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| set(VCPKG_TARGET_ARCHITECTURE x64) | ||
| set(VCPKG_CRT_LINKAGE dynamic) | ||
| set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
|
||
| set(VS_PLATFORM_TOOLSET "Intel C++ Compiler 19.1")#example or "Intel C++ Compiler 17.0" | ||
|
|
||
| if(DEFINED VS_PLATFORM_TOOLSET) | ||
| set(VCPKG_POLICY_SKIP_ARCHITECTURE_CHECK enabled) | ||
| endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| set(VCPKG_TARGET_ARCHITECTURE x64) | ||
| set(VCPKG_CRT_LINKAGE static) | ||
| set(VCPKG_LIBRARY_LINKAGE static) | ||
|
|
||
| #set(VCPKG_PLATFORM_TOOLSET v142) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| set(VCPKG_TARGET_ARCHITECTURE x86) | ||
| set(VCPKG_CRT_LINKAGE dynamic) | ||
| set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
|
|
||
| #set(VCPKG_PLATFORM_TOOLSET v142) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should probably be VCPKG_ADDITIONAL_MSBUILD_OPTIONS so they get settable from the triplet