mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Add sccache option to bootstrap (#12582)
* Add sccache option to bootstrap Couldn't see a CC wrapper style option for gyp so we inject the sccache commands directly into the generated ninja files. * Use CC_wrapper * Update toolchain.gypi * s/sccache/cc_wrapper
This commit is contained in:
@@ -110,6 +110,8 @@ def parse_args():
|
||||
help='The static library path of libchromiumcontent.')
|
||||
parser.add_argument('--defines', default='',
|
||||
help='The build variables passed to gyp')
|
||||
parser.add_argument('--cc_wrapper',
|
||||
help='Sets cc_wrapper for build. E.g. $(which sccache)')
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
@@ -120,6 +122,8 @@ def args_to_defines(args):
|
||||
if args.clang_dir:
|
||||
defines += ' make_clang_dir=' + args.clang_dir
|
||||
defines += ' clang_use_chrome_plugins=0'
|
||||
if args.cc_wrapper is not None:
|
||||
defines += ' cc_wrapper=' + args.cc_wrapper
|
||||
return defines
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user