Browse Source

Fix python ext build on kokoro (#4527)

Yilun Chong 7 years ago
parent
commit
4a09836e6c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      python/setup.py

+ 2 - 0
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')