-
Notifications
You must be signed in to change notification settings - Fork 7.4k
[vcpkg] Track compiler information in ABI #11654
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
Merged
ras0219-msft
merged 15 commits into
microsoft:master
from
ras0219:dev/roschuma/track-compiler
Jun 22, 2020
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
959e457
[vcpkg] Refactor out abi_tags_from_pre_build_info()
ras0219-msft a5d7dcd
[vcpkg] Track Windows toolchain file in triplet hash
ras0219-msft 6987def
[vcpkg] Improve error messages when constructing PreBuildInfo
ras0219-msft 387f15f
[vcpkg] Extract InstallPlanAction::BuildAbiInfo
ras0219-msft 57cd195
[vcpkg] Extract Build::EnvCache and private-impl VcpkgPaths
ras0219-msft 579dc8d
[vcpkg] Enable compiler hash detection when binarycaching is enabled
ras0219-msft 634e272
[vcpkg] Downgrade warning about missing ABI keys
ras0219-msft 19444aa
[vcpkg] Cleanup
ras0219-msft dc3cbf3
[vcpkg] Refactor compiler tracking into triplet abi computation
ras0219-msft 84d0368
Merge remote-tracking branch 'origin/master' into dev/roschuma/track-…
ras0219-msft d05c969
[vcpkg] Refactor out PreBuildInfo::using_vcvars()
ras0219-msft cb25476
Merge remote-tracking branch 'origin/master' into dev/roschuma/track-…
ras0219-msft cf2d9ed
Merge remote-tracking branch 'origin/master' into dev/roschuma/track-…
ras0219-msft d9b7e72
[vcpkg] Address some code analysis warnings
ras0219-msft d06fd9f
Merge remote-tracking branch 'origin/master' into dev/roschuma/track-…
ras0219-msft 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 |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| cmake_minimum_required(VERSION 3.10) | ||
| project(detect_compiler) | ||
ras0219 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| file(SHA1 "${CMAKE_CXX_COMPILER}" CXX_HASH) | ||
| file(SHA1 "${CMAKE_C_COMPILER}" C_HASH) | ||
| string(SHA1 COMPILER_HASH "${C_HASH}${CXX_HASH}") | ||
|
|
||
| message("#COMPILER_HASH#${COMPILER_HASH}") | ||
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,28 @@ | ||
| set(LOGS | ||
| ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-out.log | ||
| ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-rel-out.log | ||
| ${CURRENT_BUILDTREES_DIR}/config-${TARGET_TRIPLET}-dbg-out.log | ||
| ) | ||
|
|
||
| foreach(LOG IN LISTS LOGS) | ||
| file(REMOVE ${LOG}) | ||
| if(EXISTS ${LOG}) | ||
| message(FATAL_ERROR "Could not remove ${LOG}") | ||
| endif() | ||
| endforeach() | ||
|
|
||
| set(VCPKG_BUILD_TYPE release) | ||
|
|
||
| vcpkg_configure_cmake( | ||
| SOURCE_PATH "${CMAKE_CURRENT_LIST_DIR}" | ||
| PREFER_NINJA | ||
| ) | ||
|
|
||
| foreach(LOG IN LISTS LOGS) | ||
| if(EXISTS ${LOG}) | ||
| file(READ "${LOG}" _contents) | ||
| message("${_contents}") | ||
| return() | ||
| endif() | ||
| endforeach() | ||
| message(FATAL_ERROR "Could read logs: ${LOGS}") |
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.