★ wanayoo — archive 1999 https://github.com/nodejs/node/pull/22207Nouvelle recherche | Portail wanayoo
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: add CONFIG_FLAGS to with-code-cache target #22207

Closed
wants to merge 1 commit into from

Conversation

Projects
None yet
7 participants
@danbev
Copy link
Member

danbev commented Aug 9, 2018 •

This commit adds CONFIG_FLAGS to allow the with-code-cache target to be
used with a debug build. The motivation for this is to make it easier to
debug a build with the code cache enabled.

The suggested usage:

$ make BUILDTYPE=Debug with-code-cache

The BUILDTYPE option is not needed if ./configure was already
configured with --debug.

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

This comment has been minimized.

Copy link
Member Author

danbev commented Aug 9, 2018

@Trott

This comment has been minimized.

Copy link
Member

Trott commented Aug 9, 2018

Makefile Outdated
.PHONY: with-code-cache
with-code-cache:
$(PYTHON) ./configure
$(PYTHON) ./configure $(debug_flag)

This comment has been minimized.

Copy link
@richardlau

richardlau Aug 9, 2018

Member

Perhaps it would be better to make the ./configure invocations in this recipe take $(CONFIG_FLAGS) (like the other invocations of ./configure in this file) and then the ifeq statement a few lines up could append --debug to that?

This comment has been minimized.

Copy link
@danbev

danbev Aug 10, 2018

Author Member

Ah, I was not aware of the CONFIG_FLAGS, I'll take a look. Thanks!

build: add CONFIG_FLAGS to with-code-cache target
This commit adds CONFIG_FLAGS to allow the with-code-cache target to be
used with a debug build. The motivation for this is to make it easier to
debug a build with the code cache enabled.

The suggested usage:
$ make BUILDTYPE=Debug with-code-cache

The BUILDTYPE option is not needed if ./configure was already
configured with --debug.

@danbev danbev force-pushed the danbev:build_codecache_debug_flag branch from cd54fa3 to 2345a6c Aug 10, 2018

@danbev danbev changed the title build: add debug flag to with-code-cache target build: add CONFIG_FLAGS to with-code-cache target Aug 10, 2018

@danbev

This comment has been minimized.

Copy link
Member Author

danbev commented Aug 10, 2018

@refack

refack approved these changes Aug 10, 2018

@maclover7

This comment has been minimized.

Copy link
Member

maclover7 commented Aug 12, 2018

(One failure on CI is due to a SmartOS 17 machine that has been having issues, this should be safe to land)

@maclover7

This comment has been minimized.

Copy link
Member

maclover7 commented Aug 12, 2018

Landed in ec8f31d

@maclover7 maclover7 closed this Aug 12, 2018

maclover7 added a commit that referenced this pull request Aug 12, 2018

build: add CONFIG_FLAGS to with-code-cache target
This commit adds CONFIG_FLAGS to allow the with-code-cache target to be
used with a debug build. The motivation for this is to make it easier to
debug a build with the code cache enabled.

The suggested usage:
$ make BUILDTYPE=Debug with-code-cache

The BUILDTYPE option is not needed if ./configure was already
configured with --debug.

PR-URL: #22207
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>

@danbev danbev deleted the danbev:build_codecache_debug_flag branch Aug 12, 2018

targos added a commit that referenced this pull request Aug 12, 2018

build: add CONFIG_FLAGS to with-code-cache target
This commit adds CONFIG_FLAGS to allow the with-code-cache target to be
used with a debug build. The motivation for this is to make it easier to
debug a build with the code cache enabled.

The suggested usage:
$ make BUILDTYPE=Debug with-code-cache

The BUILDTYPE option is not needed if ./configure was already
configured with --debug.

PR-URL: #22207
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>

@rvagg rvagg referenced this pull request Aug 13, 2018

Merged

Release proposal: v10.9.0 #22295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.