Update setup.py (#30522)

* Update setup.py

to make build success.

* PR:#30522, Google Style, yapf -i --style google setup.py
pull/30553/head
Abael He 3 years ago committed by GitHub
parent 27a9bde44b
commit 82bf9d22fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      setup.py

@ -214,11 +214,11 @@ def check_linker_need_libatomic():
return False
# Double-check to see if -latomic actually can solve the problem.
# https://github.com/grpc/grpc/issues/22491
cpp_test = subprocess.Popen(
[cxx, '-x', 'c++', '-std=c++14', '-', '-latomic'],
stdin=PIPE,
stdout=PIPE,
stderr=PIPE)
cpp_test = subprocess.Popen(cxx +
['-x', 'c++', '-std=c++14', '-', '-latomic'],
stdin=PIPE,
stdout=PIPE,
stderr=PIPE)
cpp_test.communicate(input=code_test)
return cpp_test.returncode == 0

Loading…
Cancel
Save