-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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, win: make LTCG optional #21186
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -425,6 +425,11 @@ intl_optgroup.add_option('--with-icu-source', | |
dest='with_icu_source', | ||
help='Intl mode: optional local path to icu/ dir, or path/URL of icu source archive.') | ||
|
||
parser.add_option('--with-ltcg', | ||
action='store_true', | ||
dest='with_ltcg', | ||
help='Use Link Time Code Generation. This feature is only available on Windows.') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would suggest flipping the switch to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wanted to keep this in line with Linux - there was PR to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The difference is that if we want LTCG to be the default, it makes more sense to have an opt-out BTW I meant to refeance: https://github.com/nodejs/node/blob/23efa8cc0692e690fd5138f5b93ccfd4e47c2f58/configure#L525-L528 |
||
|
||
intl_optgroup.add_option('--download', | ||
action='store', | ||
dest='download_list', | ||
|
@@ -953,6 +958,10 @@ def configure_node(o): | |
else: | ||
o['variables']['node_use_perfctr'] = 'false' | ||
|
||
o['variables']['node_with_ltcg'] = b(options.with_ltcg) | ||
if flavor != 'win' and options.with_ltcg: | ||
raise Exception('Link Time Code Generation is only supported on Windows.') | ||
|
||
if options.tag: | ||
o['variables']['node_tag'] = '-' + options.tag | ||
else: | ||
|
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.
IMHO default should be
'true'