-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Revert "build: enabling pgo at configure" #22772
Conversation
This reverts commit 9be1555. This commit broke native addon compilation by adding variables to `common.gypi` that are not available to builds outside of Node.js core.
Fyi, reviewers of the reverted commit: @octaviansoldea @jasnell @richardlau @lundibundi |
CI: https://ci.nodejs.org/job/node-test-pull-request/17091/ Please 👍 this comment to approve fast-tracking. |
Is there a way we can add a simple addon test for this? |
@mscdex Just about any addon will experience this issue – I think CITGM actually might/should have caught this? It wasn’t run on the original PR. I’m not sure why our own addon tests didn’t catch this, but I assume it’s because we build this with our tree-wide config? We’ve had similar issues with e.g. headers in the past… |
Agreed with the comments elsewhere that the additions should in hindsight been made to Having said that, I'll try to look tomorrow but I was under the impression that |
IMHO it should have be in I'm too am intrigued why it passed our CI, but failed in the wild. |
As previously mentioned, our regular CI builds addons with |
@addaleax Could you test it again? Make sure you don't have a global # Do not edit. File was generated by node-gyp's "configure" step
{
...
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_nghttp2": "false",
"enable_lto": "false",
"enable_pgo_generate": "false",
"enable_pgo_use": "false",
"force_dynamic_crt": 0,
...
} |
@refack Right, that works … so is there something to do here, or was this just caused by stale configs? |
I'm for adding: common.gypi | 2 ++
1 file changed, 1 insertions(+)
diff --git a/common.gypi b/common.gypi
index 1fda1dde79..a6138b93c3 100644
--- a/common.gypi
+++ b/common.gypi
@@ -9,6 +9,8 @@
'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
'component%': 'static_library', # NB. these names match with what V8 expects
'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
+ 'enable_pgo_generate%': '0',
+ 'enable_pgo_use%': '0',
'python%': 'python',
'node_shared%': 'false', There is a subtle bug here. We do use node in two separate roles here: (1) as the build scaffolding tool (2) as a lib. If you want to build an addon for node11 using node8, |
@refack Okay, sounds good to me. Do you want to close this PR and open a new one with that? |
Closing given the above discussion (and gentle ping @refack) |
Refs: #22772 (comment) PR-URL: #23102 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: #22772 (comment) PR-URL: #23102 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: #22772 (comment) PR-URL: #23102 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: #22772 (comment) PR-URL: #23102 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This reverts commit 9be1555.
This commit broke native addon compilation by adding
variables to
common.gypi
that are not availableto builds outside of Node.js core.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes