mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
feat: enable whole-program optimization native modules by default (#36937)
* feat: enable whole-program optimization Enable whole-program optimization in electron native modules by default. * pass --with-ltcg to configure.py instead of setting variable * enable ltcg only on windows Co-authored-by: Kyrylo Hrechykhin <khrechykhin@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
58beec1da2
commit
a59f11fdb1
@@ -21,6 +21,10 @@ def run_node_configure(target_cpu):
|
||||
# Work around "No acceptable ASM compiler found" error on some System,
|
||||
# it breaks nothing since Electron does not use OpenSSL.
|
||||
args += ['--openssl-no-asm']
|
||||
|
||||
# Enable whole-program optimization for electron native modules.
|
||||
if sys.platform == "win32":
|
||||
args += ['--with-ltcg']
|
||||
subprocess.check_call([sys.executable, configure] + args)
|
||||
|
||||
def read_node_config_gypi():
|
||||
|
||||
Reference in New Issue
Block a user