Title: win: pre-detect VS2017 MSBuild path before building mpir dependency by petruconduraru · Pull Request #8685 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: win: pre-detect VS2017 MSBuild path before building mpir dependency by petruconduraru · Pull Request #8685 · IfcOpenShell/IfcOpenShell
X Title: win: pre-detect VS2017 MSBuild path before building mpir dependency by petruconduraru · Pull Request #8685 · IfcOpenShell/IfcOpenShell
Description: Fixes #8631. The actual bug lives in Andrej730/mpir-vs2026, a build dependency we clone but don't control (win/build-deps.cmd calls into its msvc\vs17\msbuild.bat when building mpir). That script locates MSBuild via an unconstrained vswhere -latest and only accepts the result if it looks like a VS2017 layout (MSBuild\15.0\Bin). When a newer Visual Studio (2019/2022/2026) is also installed, vswhere -latest picks that newer install instead, the VS2017 check silently fails, and the build fails with a bare \msbuild.exe is not recognized error, exactly as reported. Since we can't fix the detection logic inside that external repo, this pre-detects the correct VS2017 MSBuild path in our own build-deps.cmd and sets msbdir before invoking the mpir build. The external script already honors a pre-set msbdir and skips its own (broken) detection when one exists, this is exactly the workaround already suggested in the thread, just automated. Uses vswhere -version "[15.0,16.0)", the documented syntax for constraining to VS2017 only, so it finds the right install even with a newer VS present. Errors out clearly (rather than silently) if vswhere or a matching install can't be found. Confirmed against the actual Andrej730/mpir-vs2026 scripts that this is genuinely specific to the VS2017 path, VS2019+ use a different mechanism that isn't affected. This is untested on real Windows (no Windows environment available here), it's a carefully traced, best-effort fix, not a live-verified one. @ccic-techni since you're already set up to test the manual msbdir workaround, would you be willing to try this branch instead and confirm whether it resolves it without needing to set msbdir by hand? That would be a real help in confirming this actually works before merge. AI-generated PR, human-reviewed.
Open Graph Description: Fixes #8631. The actual bug lives in Andrej730/mpir-vs2026, a build dependency we clone but don't control (win/build-deps.cmd calls into its msvc\vs17\msbuild.bat when building mpir). That scri...
X Description: Fixes #8631. The actual bug lives in Andrej730/mpir-vs2026, a build dependency we clone but don't control (win/build-deps.cmd calls into its msvc\vs17\msbuild.bat when building mpir). That ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/8685
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4f2e3e3c-7627-94ec-9aed-1b7b392daf13 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B59C:FFCCA:4F305F:68805C:6B04DC45 |
| html-safe-nonce | c08d29ee93a6f9bd346e50f4e6f5e374f2218f5cb327780fc389dab428a84218 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTlDOkZGQ0NBOjRGMzA1Rjo2ODgwNUM6NkIwNERDNDUiLCJ2aXNpdG9yX2lkIjoiMzQ5MTQ2OTMxNzE4NTUyNjg1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a72aded40ed063d78e8d312000165f70bb429dc419bd47abf69db32876c3104b |
| hovercard-subject-tag | pull_request:4074225299 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/8685/files |
| twitter:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/139251053?s=400&v=4 |
| og:image:alt | Fixes #8631. The actual bug lives in Andrej730/mpir-vs2026, a build dependency we clone but don't control (win/build-deps.cmd calls into its msvc\vs17\msbuild.bat when building mpir). That scri... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 194dacb8acfd3e4d3ffb2704e0b1f10327f0dad690a7142acc7b0e0a2d073965 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6c35540a0a2991ee20bd053ba2601cce33f72cb1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width