-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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, deps, test, tools: avoid excessive LTO, debug information #49063
Open
rockdrilla
wants to merge
3
commits into
nodejs:main
Choose a base branch
from
rockdrilla:build-flags
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Review requested:
|
nodejs-github-bot
added
build
Issues and PRs related to build files or the CI.
dependencies
Pull requests that update a dependency file.
i18n-api
Issues and PRs related to the i18n implementation.
icu
Issues and PRs related to the ICU dependency.
needs-ci
PRs that need a full CI run.
openssl
Issues and PRs related to the OpenSSL dependency.
tools
Issues and PRs related to the tools directory.
v8 engine
Issues and PRs related to the V8 dependency.
labels
Aug 8, 2023
rockdrilla
force-pushed
the
build-flags
branch
2 times, most recently
from
August 8, 2023 06:52
46e78e0
to
8f1e1e3
Compare
Maybe I should replace this: # Avoid excessive PGO
['enable_pgo_generate=="true"', {
'cflags!': [ '-fprofile-generate' ],
'ldflags!': [ '-fprofile-generate' ],
}, ],
['enable_pgo_use=="true"', {
'cflags!': [ '-fprofile-use -fprofile-correction' ],
'ldflags!': [ '-fprofile-use -fprofile-correction' ],
}, ], with that? # Avoid excessive PGO
['enable_pgo_generate=="true"', {
'cflags!': [ '<(pgo_generate)' ],
'ldflags!': [ '<(pgo_generate)' ],
}, ],
['enable_pgo_use=="true"', {
'cflags!': [ '<(pgo_use)' ],
'ldflags!': [ '<(pgo_use)' ],
}, ], |
One more catch: replace this # Avoid excessive LTO
['enable_lto=="true"', {
'ldflags': [ '-fno-lto' ],
}], with that? # Avoid excessive LTO
['enable_lto=="true"', {
'cflags': [ '-fno-lto' ],
'cflags!': [ '<(lto)' ],
'ldflags': [ '-fno-lto' ],
'ldflags!': [ '<(lto)' ],
}], |
rockdrilla
force-pushed
the
build-flags
branch
from
September 16, 2023 19:47
8f1e1e3
to
2d7f8df
Compare
rockdrilla
changed the title
build, deps, tools: avoid excessive LTO, PGO, debug information
build, deps, test, tools: avoid excessive LTO, debug information
Sep 16, 2023
I'd perform more detailed excessive PGO exclusion later (still in progress). |
rockdrilla
force-pushed
the
build-flags
branch
from
September 17, 2023 05:28
2d7f8df
to
90468da
Compare
Don't link intermediate executables with LTO in order to speed up overall build time. Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
condition doesn't apply to this target type (introduced in c3cd75d) Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Don't build intermediate executables with debug information in order to save some disk space during build. Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
rockdrilla
force-pushed
the
build-flags
branch
from
September 18, 2023 23:50
90468da
to
c0f001d
Compare
friendly ping @bnoordhuis, @jasnell, @mhdawson, @richardlau |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
build
Issues and PRs related to build files or the CI.
dependencies
Pull requests that update a dependency file.
i18n-api
Issues and PRs related to the i18n implementation.
icu
Issues and PRs related to the ICU dependency.
needs-ci
PRs that need a full CI run.
openssl
Issues and PRs related to the OpenSSL dependency.
tools
Issues and PRs related to the tools directory.
v8 engine
Issues and PRs related to the V8 dependency.
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.
fixes: build, deps, tools: avoid excessive LTO #47313
fixes: build, deps, tools: avoid excessive LTO #47313
Signed-off-by: Konstantin Demin rockdrilla@gmail.com