Commit 4a09836e authored by Yilun Chong's avatar Yilun Chong Committed by Jie Luo

Fix python ext build on kokoro (#4527)

parent 92898e9e
......@@ -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')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment