-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[vcpkg-cmake] Update parallel vcpkg_cmake_configure #21507
Conversation
Should we also fix |
I tend to not change it:
|
i would really like separate logs for each config if it is possible. |
Understood. However, this wasn't the case for windows before. |
Yeah I know. Windows always puts everything in the same file which is kind of annoying and harder to debug in my view.
|
I don't see a simple way to do that portably in the ninja rule, for stdout and stderr. OTOH the single config log does have some advantages:
|
|
bcg729:x64-linux: source write, fix in #21516. |
I'm also curious how you would think about parallelizing the build step. If this is possible at all, via |
The |
This PR is twofold, a) fixing the working directory for parallel configure, and b) applying parallel configure outside windows. Since it rebuilds a lot of ports, it should be decided if b) shall be left in this PR. |
Waiting for test results. |
This is now expensively rebuilding against an old version of master. Better merge HEAD of master, to fetch the bcg729 update. |
@dg0yt Fine, so please merge to master to retrigger the ci test. |
hpx regression was fixed in #21617.
wavelib:arm-uwp:
|
wavelib has parallel source writes for test executables, #21671. |
In
This error is not related to this PR: python3 uses cmake only for windows incl. uwp. The osx build uses configure+make. |
If the host is x86, assume that msbuild is requested for windows. If msbuild is requested and suitable, use it. Else if a particular generator is requested, use it. Else if ninja is available, use it. Else on non-windows host, use "Unix Makefiles".
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout de176433e9a8769eed0e43d61758f4cdc1dc6e20 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 471b840..5d0b378 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -4741,7 +4741,7 @@
"port-version": 1
},
"ms-gltf": {
- "baseline": "2022-06-28",
+ "baseline": "2022-07-18",
"port-version": 0
},
"ms-gsl": {
@@ -7421,7 +7421,7 @@
"port-version": 0
},
"vcpkg-cmake": {
- "baseline": "2022-07-02",
+ "baseline": "2022-07-18",
"port-version": 0
},
"vcpkg-cmake-config": {
diff --git a/versions/m-/ms-gltf.json b/versions/m-/ms-gltf.json
index 87af4d8..69b11e9 100644
--- a/versions/m-/ms-gltf.json
+++ b/versions/m-/ms-gltf.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "1573e63635b8505134e0ecddcb2f0ab76874fb54",
+ "version-date": "2022-07-18",
+ "port-version": 0
+ },
{
"git-tree": "a9a91635168ea77faa39adb73b27483797fa8967",
"version-date": "2022-06-28",
diff --git a/versions/v-/vcpkg-cmake.json b/versions/v-/vcpkg-cmake.json
index daad9b9..a329f1d 100644
--- a/versions/v-/vcpkg-cmake.json
+++ b/versions/v-/vcpkg-cmake.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "a7b618b7782f3c841d7fd2d84a6ba3619815362a",
+ "version-date": "2022-07-18",
+ "port-version": 0
+ },
{
"git-tree": "94abbd71a7fe495e883b13c077312f6d419cbc41",
"version-date": "2022-07-02",
I will update the version database when the PR received preliminary acceptance. |
ports/ms-gltf/vcpkg.json
Outdated
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "ms-gltf", | |||
"version-date": "2022-06-28", | |||
"version-date": "2022-07-18", |
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.
should bump port version, not version-date
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.
That's what I would have done for other version schemes.
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.
If the content of the stuff we install changed, then the version-date should be updated. If only maintainer improvement stuff in the port changed, port-version should be bumped.
It is nice to know that there is a micro issue with the ms-gltf version update. But before burning more CI time, I need feedback on the core part. |
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.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 8ff168270bc5977384b008bec6e879e15089d850 -- versions
./vcpkg x-add-version --all
Diff
diff --git a/versions/baseline.json b/versions/baseline.json
index 0114230..89c2864 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -4742,7 +4742,7 @@
},
"ms-gltf": {
"baseline": "2022-06-28",
- "port-version": 0
+ "port-version": 1
},
"ms-gsl": {
"baseline": "4.0.0",
@@ -7421,7 +7421,7 @@
"port-version": 0
},
"vcpkg-cmake": {
- "baseline": "2022-07-02",
+ "baseline": "2022-07-18",
"port-version": 0
},
"vcpkg-cmake-config": {
diff --git a/versions/m-/ms-gltf.json b/versions/m-/ms-gltf.json
index 87af4d8..82b9a8b 100644
--- a/versions/m-/ms-gltf.json
+++ b/versions/m-/ms-gltf.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "b189e4d23ebe85437573b386d94b06b3f9fb6238",
+ "version-date": "2022-06-28",
+ "port-version": 1
+ },
{
"git-tree": "a9a91635168ea77faa39adb73b27483797fa8967",
"version-date": "2022-06-28",
diff --git a/versions/v-/vcpkg-cmake.json b/versions/v-/vcpkg-cmake.json
index daad9b9..a329f1d 100644
--- a/versions/v-/vcpkg-cmake.json
+++ b/versions/v-/vcpkg-cmake.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "a7b618b7782f3c841d7fd2d84a6ba3619815362a",
+ "version-date": "2022-07-18",
+ "port-version": 0
+ },
{
"git-tree": "94abbd71a7fe495e883b13c077312f6d419cbc41",
"version-date": "2022-07-02",
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.
I note that there is a preexisting issue related to vcpkg_find_acquire_program and FORCE_SYSTEM_BINARIES I did not comment on here since it's unrelated to this improvement. (And I don't think other reviewers should block for that either)
Thanks for making parallelism work in more places:) |
Now I may turn to |
do/test it outside of that function ;) Make a script port for it. |
What does your PR fix?
Enables parallel cmake whenever ninja is available (non-windows hosts, system Ninja).
Adds "Unix Makefiles" as fallback generator for non-Windows system.
Establishs this order for generator selection:
VCPKG_FORCE_SYSTEM_BINARIES
is set, try to find Ninja viafind_program
.Which triplets are supported/not supported? Have you updated the CI baseline?
all, no
Does your PR follow the maintainer guide?
yes
If you have added/updated a port: Have you run
./vcpkg x-add-version --all
and committed the result?incomplete