Skip to content

Commit

Permalink
Fix python ext build on kokoro (#4527)
Browse files Browse the repository at this point in the history
  • Loading branch information
BSBandme authored and anandolee committed May 3, 2018
1 parent 92898e9 commit 4a09836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 4a09836

Please sign in to comment.