aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yilun Chong <chongyilun250@sina.com>2018-05-03 15:55:27 -0700
committerGravatar Jie Luo <anandolee@gmail.com>2018-05-03 15:55:27 -0700
commit4a09836e6c1b355f4925a018eb15f31a7b17f8f1 (patch)
tree247f3a290d46e1b440edadd5b49201cd583decd0
parent92898e9e9cb2f1c006fcc5099c9c96eafce63dc8 (diff)
Fix python ext build on kokoro (#4527)
-rwxr-xr-xpython/setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/setup.py b/python/setup.py
index bdae6913..9a328cb5 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -206,6 +206,8 @@ if __name__ == '__main__':
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')