Skip to content
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

build: find version of Clang installed on Windows #53228

Conversation

StefanStojanovic
Copy link
Contributor

As discussed, we want to be able to fetch the version of the installed ClangCL dynamically, so we do not keep it hardcoded. This change takes an initial step in that direction. For now, we require Clang to be installed from a Visual Studio installation as an individual component. Later, once we finish adding support for Clang on Windows, we should aim to improve this by allowing users to install Clang themselves and use it Node.js.

This approach uses the vswhere_usability_wrapper.cmd to ensure that required components are installed when compiling with Clang.

Refs: #52809

@StefanStojanovic StefanStojanovic added the windows Issues and PRs related to the Windows platform. label May 31, 2024
@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. install Issues and PRs related to the installers. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. labels May 31, 2024
@StefanStojanovic StefanStojanovic added the request-ci Add this label to start a Jenkins CI on a PR. label May 31, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 31, 2024
@nodejs-github-bot

This comment was marked as outdated.

Copy link
Member

@targos targos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RSLGTM

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@StefanStojanovic StefanStojanovic added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 3, 2024
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Jun 3, 2024
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/53228
✔  Done loading data for nodejs/node/pull/53228
----------------------------------- PR info ------------------------------------
Title      build: find version of Clang installed on Windows (#53228)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     StefanStojanovic:huseyin-12229-implement-clang-version-detection -> nodejs:main
Labels     doc, windows, install, build, tools, needs-ci
Commits    1
 - build: find version of Clang installed on Windows
Committers 1
 - StefanStojanovic 
PR-URL: https://github.com/nodejs/node/pull/53228
Refs: https://github.com/nodejs/node/issues/52809
Reviewed-By: Michaël Zasso 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/53228
Refs: https://github.com/nodejs/node/issues/52809
Reviewed-By: Michaël Zasso 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Fri, 31 May 2024 10:45:42 GMT
   ✔  Approvals: 1
   ✔  - Michaël Zasso (@targos) (TSC): https://github.com/nodejs/node/pull/53228#pullrequestreview-2090704833
   ✘  This PR needs to wait 97 more hours to land (or 0 hours if there is one more approval)
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2024-06-03T08:23:03Z: https://ci.nodejs.org/job/node-test-pull-request/59632/
- Querying data for job/node-test-pull-request/59632/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/9347653198

@StefanStojanovic StefanStojanovic removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jun 4, 2024
@StefanStojanovic StefanStojanovic added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 11, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 11, 2024
@nodejs-github-bot nodejs-github-bot merged commit 0758c9b into nodejs:main Jun 11, 2024
78 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 0758c9b

targos pushed a commit that referenced this pull request Jun 20, 2024
PR-URL: #53228
Refs: #52809
Reviewed-By: Michaël Zasso <targos@protonmail.com>
sophoniie pushed a commit to sophoniie/node that referenced this pull request Jun 20, 2024
PR-URL: nodejs#53228
Refs: nodejs#52809
Reviewed-By: Michaël Zasso <targos@protonmail.com>
bmeck pushed a commit to bmeck/node that referenced this pull request Jun 22, 2024
PR-URL: nodejs#53228
Refs: nodejs#52809
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@targos targos added the dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. doc Issues and PRs related to the documentations. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. install Issues and PRs related to the installers. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants