Skip to content

Commit

Permalink
Pass CC into tox
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Jul 3, 2024
1 parent 7e68fa9 commit dc05de1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,13 @@ def get_c_extension():
except FileNotFoundError:
brew_prefix = None

raise Exception("AAAAAAAAAAAA Darwin build, CC=", os.environ.get("CC"))

if brew_prefix and not os.environ.get('CC'):
os.environ['CC'] = '{}/opt/llvm/bin/clang'.format(brew_prefix)
link_args = ['-L{}/opt/llvm/lib'.format(brew_prefix), '-fopenmp']
else:
link_args = ['-fopenmp']

compile_args = ['-fopenmp']
compile_args = ['-fopenmp']

else:
# Linux - assume gcc if CC not set
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ skipsdist = True
[testenv]
changedir = tests_and_analysis/test
test_command = python run_tests.py --report
passenv = CC

[testenv:{py38,py39,py310,py311}]
install_command =
Expand Down

0 comments on commit dc05de1

Please sign in to comment.