GeezerVison is showing github.com — build: keep PGO settings out of addon builds · nodejs/node@23917ad
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: common.gypi +4-3Lines changed: 4 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 235 | 235 | # frames otherwise, even with --call-graph dwarf. | 236 | 236 | 'cflags': [ '-fno-omit-frame-pointer' ], | 237 | 237 | }], | 238 | | - ['OS=="linux" or OS=="openharmony"', { | | 238 | + # PGO settings are specific to Node, not addons built with node-gyp. | | 239 | + ['(OS=="linux" or OS=="openharmony") and configuring_node', { | 239 | 240 | 'conditions': [ | 240 | 241 | ['enable_pgo_generate=="true"', { | 241 | 242 | 'cflags': ['<(pgo_generate)'], | | 247 | 248 | },], | 248 | 249 | ], | 249 | 250 | },], | 250 | | - ['OS=="mac"', { | | 251 | + ['OS=="mac" and configuring_node', { | 251 | 252 | 'conditions': [ | 252 | 253 | ['enable_pgo_generate=="true"', { | 253 | 254 | 'xcode_settings': { | | 312 | 313 | },], | 313 | 314 | ], | 314 | 315 | 'target_conditions': [ | 315 | | - ['_toolset=="target"', { | | 316 | + ['_toolset=="target" and <(configuring_node)', { | 316 | 317 | 'conditions': [ | 317 | 318 | ['enable_pgo_generate=="true"', { | 318 | 319 | 'msvs_settings': { | |
|