mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Only create config.gypi if it doesn't exist.
Otherwise every call of bootstrap would trigger recompilation of some files.
This commit is contained in:
@@ -70,8 +70,9 @@ def update_win32_python():
|
||||
|
||||
def touch_config_gypi():
|
||||
config_gypi = os.path.join(SOURCE_ROOT, 'vendor', 'node', 'config.gypi')
|
||||
with open(config_gypi, 'w+') as f:
|
||||
f.truncate(0)
|
||||
if not os.path.exists(config_gypi):
|
||||
with open(config_gypi, 'w+') as f:
|
||||
f.truncate(0)
|
||||
|
||||
|
||||
def update_atom_shell():
|
||||
|
||||
Reference in New Issue
Block a user