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

tools: add msvc /P output to .gitignore #35735

Closed
wants to merge 1 commit into from

Conversation

gengjiawen
Copy link
Member

This is pretty useful when debug missing symbol on windows.

See https://docs.microsoft.com/en-us/cpp/build/reference/p-preprocess-to-a-file?view=vs-2019

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Oct 21, 2020
@gengjiawen
Copy link
Member Author

cc @nodejs/platform-windows @targos

@targos
Copy link
Member

targos commented Oct 23, 2020

How did you add the /P argument?

@gengjiawen
Copy link
Member Author

gengjiawen commented Oct 23, 2020

How did you add the /P argument?

diff --git a/tools/v8_gypfiles/v8.gyp b/tools/v8_gypfiles/v8.gyp
index fd786d024e..696474c053 100644
--- a/tools/v8_gypfiles/v8.gyp
+++ b/tools/v8_gypfiles/v8.gyp
@@ -203,7 +203,7 @@
   'target_defaults': {
     'msvs_settings': {
       'VCCLCompilerTool': {
-        'AdditionalOptions': ['/utf-8']
+        'AdditionalOptions': ['/utf-8', '/P']
       }
     },
   },

Recently use case is #35433. The clang support maybe require us to patch v8 again.

@gengjiawen
Copy link
Member Author

@targos ping

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.

@nodejs/build-files

@gengjiawen gengjiawen added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 28, 2020
@github-actions github-actions bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 28, 2020
@github-actions
Copy link
Contributor

Commit Queue failed
- Loading data for nodejs/node/pull/35735
✔  Done loading data for nodejs/node/pull/35735
----------------------------------- PR info ------------------------------------
Title      tools: add msvc /P output to .gitignore (#35735)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     gengjiawen:msvc-ignore -> nodejs:master
Labels     meta
Commits    1
 - tools: add msvc /P output to .gitignore
Committers 1
 - Jiawen Geng 
PR-URL: https://github.com/nodejs/node/pull/35735
Reviewed-By: Michaël Zasso 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/35735
Reviewed-By: Michaël Zasso 
--------------------------------------------------------------------------------
   ✔  Last GitHub Actions successful
   ✖  No Jenkins CI runs detected
   ℹ  This PR was created on Wed, 21 Oct 2020 10:47:38 GMT
   ✔  Approvals: 1
   ✔  - Michaël Zasso (@targos) (TSC): https://github.com/nodejs/node/pull/35735#pullrequestreview-517615271
   ✖  This PR needs to wait 9 more hours to land (or 0 hours if there is one more approval)
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu

Commit Queue action: https://github.com/nodejs/node/actions/runs/332615436

@github-actions github-actions bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Oct 28, 2020
gengjiawen added a commit that referenced this pull request Oct 30, 2020
PR-URL: #35735
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@gengjiawen
Copy link
Member Author

Landed in 48ed72d

@gengjiawen gengjiawen closed this Oct 30, 2020
@gengjiawen gengjiawen deleted the msvc-ignore branch October 30, 2020 01:47
targos pushed a commit that referenced this pull request Nov 3, 2020
PR-URL: #35735
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@targos targos mentioned this pull request Nov 3, 2020
targos pushed a commit that referenced this pull request Mar 3, 2021
PR-URL: #35735
Reviewed-By: Michaël Zasso <targos@protonmail.com>
MylesBorins pushed a commit that referenced this pull request Apr 6, 2021
PR-URL: #35735
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@danielleadams danielleadams mentioned this pull request May 3, 2021
@targos targos removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Sep 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Issues and PRs related to the general management of the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants