GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — build: extract common code from NODE_EXE/_G_EXE by danbev · Pull Request #22310 · nodejs/node

Conversation

@danbev

@danbev danbev commented Aug 14, 2018

Copy link
Copy Markdown
Contributor

This commit extracts common parts of the NODE_EXE, and NODE_G_EXE
recipes into a canned reciepe to reduce some code duplication.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot

nodejs-github-bot commented Aug 14, 2018

Copy link
Copy Markdown
Collaborator

@danbev build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/554/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to Node.js builds or CI infrastructure. label Aug 14, 2018
@danbev

danbev commented Aug 14, 2018

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/16436/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

maclover7
maclover7 approved these changes Aug 14, 2018
View reviewed changes
JungMinu
JungMinu approved these changes Aug 14, 2018
View reviewed changes
@refack

refack commented Aug 14, 2018

Copy link
Copy Markdown
Contributor

/cc @nodejs/build-files

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

refack
refack approved these changes Aug 14, 2018
View reviewed changes
joyeecheung
joyeecheung approved these changes Aug 14, 2018
View reviewed changes
richardlau
richardlau approved these changes Aug 14, 2018
View reviewed changes
@joyeecheung joyeecheung mentioned this pull request Aug 15, 2018
CI failures: 20180815 nodejs/reliability#13
Closed
@danbev
build: extract common code from NODE_EXE/_G_EXE
db723a1
This commit extracts common parts of the NODE_EXE, and NODE_G_EXE
recipes into a canned reciepe to reduce some code duplication.
@danbev
danbev force-pushed the build_node_exe_target branch from e8e965d to db723a1 Compare August 20, 2018 11:43
@danbev

danbev commented Aug 20, 2018

Copy link
Copy Markdown
Contributor Author

Rebased CI: https://ci.nodejs.org/job/node-test-pull-request/16601/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev

danbev commented Aug 22, 2018

Copy link
Copy Markdown
Contributor Author

Landed in 4e2fa8b.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@danbev danbev closed this Aug 22, 2018
@danbev
danbev deleted the build_node_exe_target branch August 22, 2018 04:39
danbev added a commit that referenced this pull request Aug 22, 2018
@danbev
build: extract common code from NODE_EXE/_G_EXE
4e2fa8b
This commit extracts common parts of the NODE_EXE, and NODE_G_EXE
recipes into a canned reciepe to reduce some code duplication.

PR-URL: #22310
Reviewed-By: Jon Moss <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
refack
refack reviewed Aug 22, 2018
View reviewed changes
Comment thread Makefile
# See comments on the build-addons target for some more info
if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/$1/$(NODE_EXE) $@; fi
endef
$(NODE_EXE): config.gypi out/Makefile

@refack refack Aug 22, 2018

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

AFAICT $BUILDTYPE is already defined.

node/Makefile

Lines 64 to 68 in db723a1

ifeq ($(BUILDTYPE),Release)
all: out/Makefile $(NODE_EXE) ## Default target, builds node in out/Release/node.
else
all: out/Makefile $(NODE_EXE) $(NODE_G_EXE)
endif

so this could be:

$(NODE_EXE) $(NODE_G_EXE): config.gypi out/Makefile
  $(MAKE) -C out
  if [ ! -r $@ -o ! -L $@ ]; then ln -fs out/$(BUILDTYPE)/$(NODE_EXE) $@; fi

removing
BUILDTYPE is defined so no need to pass is explicitly
V=$(V) this is just 🤷‍♂️
and putting $(BUILDTYPE) in the link target

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@targos targos added dont-land-on-v4.x labels Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@joyeecheung joyeecheung joyeecheung approved these changes
@JungMinu JungMinu JungMinu approved these changes
@richardlau richardlau richardlau approved these changes
+2 more reviewers
@refack refack refack approved these changes
@maclover7 maclover7 maclover7 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

build Issues and PRs related to Node.js builds or CI infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@danbev @nodejs-github-bot @refack @maclover7 @joyeecheung @JungMinu @richardlau @targos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.