mirror of
https://github.com/aphrody-labs/cef.git
synced 2026-10-13 21:07:07 +00:00
tools: Fail loudly when using --args inside GN_ARGUMENTS (#4172)
This commit is contained in:
1 parent
05d7a24767
commit
f7a33256c7
1 file changed
+5
@@ -144,6 +144,11 @@ for dir, config in configs.items():
|
||||
# Generate the Ninja config.
|
||||
cmd = ['gn', 'gen', os.path.join('out', dir)]
|
||||
if 'GN_ARGUMENTS' in os.environ.keys():
|
||||
if os.environ['GN_ARGUMENTS'].find("--args") >= 0:
|
||||
print(
|
||||
"you must use GN_DEFINES to pass gn variables and not via --args in GN_ARGUMENTS"
|
||||
)
|
||||
sys.exit(1)
|
||||
cmd.extend(os.environ['GN_ARGUMENTS'].split(' '))
|
||||
RunAction(src_dir, cmd)
|
||||
if platform == 'windows':
|
||||
|
||||
Reference in new issue
Block a user