diff --git a/autoninja.bat b/autoninja.bat index 5dee6de84..c504f38c4 100755 --- a/autoninja.bat +++ b/autoninja.bat @@ -18,9 +18,15 @@ set scriptdir=%~dp0 :loop IF NOT "%1"=="" ( - @rem Tell goma to not do network compiles. - IF "%1"=="--offline" SET GOMA_DISABLED=1 - IF "%1"=="-o" SET GOMA_DISABLED=1 + @rem Tell goma or reclient to not do network compiles. + IF "%1"=="--offline" ( + SET GOMA_DISABLED=1 + SET RBE_remote_disabled=1 + ) + IF "%1"=="-o" ( + SET GOMA_DISABLED=1 + SET RBE_remote_disabled=1 + ) SHIFT GOTO :loop ) diff --git a/autoninja.py b/autoninja.py index a0f49966b..a19d08f18 100755 --- a/autoninja.py +++ b/autoninja.py @@ -161,9 +161,9 @@ if os.environ.get('NINJA_SUMMARIZE_BUILD', '0') == '1': args += ['-d', 'stats'] if offline and not sys.platform.startswith('win'): - # Tell goma to do local compiles. On Windows this environment variable is set - # by the wrapper batch file. - print('GOMA_DISABLED=1 ' + ' '.join(args)) + # Tell goma or reclient to do local compiles. On Windows these environment + # variables are set by the wrapper batch file. + print('RBE_remote_disabled=1 GOMA_DISABLED=1 ' + ' '.join(args)) else: print(' '.join(args))