mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 1266343 - Add CONFIG_SHELL to allow to set a POSIX shell that is not sh. r=chmanchester
This allows unit tests to override the shell check, and is compatible with what autoconf actually does.
This commit is contained in:
parent
9e530db748
commit
11b8ab106b
@ -291,12 +291,16 @@ def mozconfig_options(mozconfig, help):
|
||||
option(env='MOZILLABUILD', nargs=1,
|
||||
help='Path to Mozilla Build (Windows-only)')
|
||||
|
||||
option(env='CONFIG_SHELL', nargs=1, help='Path to a POSIX shell')
|
||||
|
||||
# It feels dirty replicating this from python/mozbuild/mozbuild/mozconfig.py,
|
||||
# but the end goal being that the configure script would go away...
|
||||
@depends('MOZILLABUILD')
|
||||
@depends('CONFIG_SHELL', 'MOZILLABUILD')
|
||||
@checking('for a shell')
|
||||
@imports('sys')
|
||||
def shell(mozillabuild):
|
||||
def shell(value, mozillabuild):
|
||||
if value:
|
||||
return find_program(value[0])
|
||||
shell = 'sh'
|
||||
if mozillabuild:
|
||||
shell = mozillabuild[0] + '/msys/bin/sh'
|
||||
|
Loading…
x
Reference in New Issue
Block a user