Skip to content

build: only try to run node when it's needed by the target - #24115

Closed
joyeecheung wants to merge 2 commits into
nodejs:masterfrom
joyeecheung:run-use-openssl
Closed

build: only try to run node when it's needed by the target#24115
joyeecheung wants to merge 2 commits into
nodejs:masterfrom
joyeecheung:run-use-openssl

Conversation

@joyeecheung

Copy link
Copy Markdown
Member

Right now node -p process.versions.openssl always gets run
in the Makefile even when it's not needed by the target
(e.g. make clean, make test-only). This patch makes it
a run time call instead of part of the global expansion.

Right now `node -p process.versions.openssl` always gets run
in the Makefile even when it's not needed by the target
(e.g. `make clean`, `make test-only`). This patch makes it
a run time call instead of part of the global expansion.
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the build Issues and PRs related to build files or the CI. label Nov 6, 2018
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

@joyeecheungjoyeecheung changed the title build: only try to find node when it's needed by the targetbuild: only try to run node when it's needed by the targetNov 6, 2018
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

hmm, so the more accurate description is "only try to run node" because make will always attempt to find it, it just does not actually call it until you $(shell, ..) the result of $(call available-node, ...) or put it into the rules.

@joyeecheung

Copy link
Copy Markdown
MemberAuthor

This also partially addresses #22148 (comment)

This makes our current make process depends on the state of out/BUILDTYPE/node - if the previous build is bad, one has to remove out/BUILDTYPE/node first to rebuild the whole thing.

The bad build won't be run if you have not touched documentation, or if you are running make test-only which doesn't build doc

Comment threadMakefile Outdated
Comment threadMakefile Outdated
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

@joyeecheungjoyeecheung added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 6, 2018
Trott pushed a commit to Trott/io.js that referenced this pull request Nov 8, 2018
Right now `node -p process.versions.openssl` always gets run
in the Makefile even when it's not needed by the target
(e.g. `make clean`, `make test-only`). This patch makes it
a run time call instead of part of the global expansion.
PR-URL: nodejs#24115
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
@Trott

Trott commented Nov 8, 2018

Copy link
Copy Markdown
Member

Landed in dc3bc89

@TrottTrott closed this Nov 8, 2018
BridgeAR pushed a commit that referenced this pull request Nov 14, 2018
Right now `node -p process.versions.openssl` always gets run
in the Makefile even when it's not needed by the target
(e.g. `make clean`, `make test-only`). This patch makes it
a run time call instead of part of the global expansion.
PR-URL: #24115
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
@BridgeARBridgeAR mentioned this pull request Nov 14, 2018
kiyomizumia pushed a commit to kiyomizumia/node that referenced this pull request Nov 15, 2018
Right now `node -p process.versions.openssl` always gets run
in the Makefile even when it's not needed by the target
(e.g. `make clean`, `make test-only`). This patch makes it
a run time call instead of part of the global expansion.
PR-URL: nodejs#24115
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
codebytere pushed a commit that referenced this pull request Dec 13, 2018
Right now `node -p process.versions.openssl` always gets run
in the Makefile even when it's not needed by the target
(e.g. `make clean`, `make test-only`). This patch makes it
a run time call instead of part of the global expansion.
PR-URL: #24115
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 26, 2018
Right now `node -p process.versions.openssl` always gets run
in the Makefile even when it's not needed by the target
(e.g. `make clean`, `make test-only`). This patch makes it
a run time call instead of part of the global expansion.
PR-URL: #24115
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
@codebyterecodebytere mentioned this pull request Jan 4, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.buildIssues and PRs related to build files or the CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@joyeecheung@nodejs-github-bot@Trott@danbev@richardlau@codebytere