diff --git a/python/setup.py b/python/setup.py index bdae6913f8e2..9a328cb51c1b 100755 --- a/python/setup.py +++ b/python/setup.py @@ -206,6 +206,8 @@ def get_option_from_sys_argv(option_str): v = float('.'.join(v.split('.')[:2])) if v >= 10.12: extra_compile_args.append('-std=c++11') + elif os.getenv('KOKORO_BUILD_NUMBER') or os.getenv('KOKORO_BUILD_ID'): + extra_compile_args.append('-std=c++11') if warnings_as_errors in sys.argv: extra_compile_args.append('-Werror')