Fix fetching CXX variable in setup.py (#28873)

* Fix fetching CXX variable in setup.py

* Preserve all elements of CXX variable in setup.py
pull/29054/head
kacper-ka 3 years ago committed by GitHub
parent d15711d2bb
commit 6ba998854f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      setup.py

@ -200,8 +200,8 @@ def check_linker_need_libatomic():
"""Test if linker on system needs libatomic."""
code_test = (b'#include <atomic>\n' +
b'int main() { return std::atomic<int64_t>{}; }')
cxx = os.environ.get('CXX', 'c++')
cpp_test = subprocess.Popen([cxx, '-x', 'c++', '-std=c++11', '-'],
cxx = shlex.split(os.environ.get('CXX', 'c++'))
cpp_test = subprocess.Popen(cxx + ['-x', 'c++', '-std=c++11', '-'],
stdin=PIPE,
stdout=PIPE,
stderr=PIPE)

Loading…
Cancel
Save