mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
47633daa65
Avoid wrong use of popular but ambiguous variables (`WIN32` etc.) in scripts and portfiles by detection in CI. Sometimes the variables are used wrongly, and sometimes this isn't caught in PR review. This PR tries to catch those variables (when in the active code path in script mode). [This can happen to every contributor](https://github.com/microsoft/vcpkg/pull/34356#discussion_r1360074122), even if he/she knows the rules ... vcpkg is raising the bar higher than usual, having to deal with targets and hosts even in script mode. (`b2-options.cmake` (boost fragment) shows where we get if we don't pay attention: the same code being used in script mode (`WIN32` meaning host) and in project mode (`WIN32` meaning target).) The new check doesn't break any user builds because it relies on command line options. However it changes the ABI hashes.
15 lines
275 B
JSON
15 lines
275 B
JSON
{
|
|
"versions": [
|
|
{
|
|
"git-tree": "766525189c81d40661731faecc566fb96d66fcc4",
|
|
"version": "1.19.3",
|
|
"port-version": 1
|
|
},
|
|
{
|
|
"git-tree": "76db60fb182a4c33faabfb411e1842428ae4c8ad",
|
|
"version": "1.19.3",
|
|
"port-version": 0
|
|
}
|
|
]
|
|
}
|