-
Notifications
You must be signed in to change notification settings - Fork 30k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This modification allows for compiling with profiled guided optimization (pgo) using the flags --enable-pgo-generate and --enable-pgo-use. Refs: #21583 Refs: #1409 PR-URL: #21596 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
- Loading branch information
Octavian Soldea
authored and
Gabriel Schulhof
committed
Sep 4, 2018
1 parent
fdf829e
commit 9be1555
Showing
2 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,9 +179,19 @@ | |
}], | ||
['OS=="linux"', { | ||
'variables': { | ||
'pgo_generate': ' -fprofile-generate ', | ||
'pgo_use': ' -fprofile-use -fprofile-correction ', | ||
'lto': ' -flto=4 -fuse-linker-plugin -ffat-lto-objects ', | ||
}, | ||
'conditions': [ | ||
['enable_pgo_generate=="true"', { | ||
'cflags': ['<(pgo_generate)'], | ||
'ldflags': ['<(pgo_generate)'], | ||
},], | ||
['enable_pgo_use=="true"', { | ||
'cflags': ['<(pgo_use)'], | ||
'ldflags': ['<(pgo_use)'], | ||
},], | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
refack
Contributor
|
||
['enable_lto=="true"', { | ||
'cflags': ['<(lto)'], | ||
'ldflags': ['<(lto)'], | ||
|
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
These changes should have been made to
node.gyp
– this file affects addons, butenable_pgo_use
is not defined there