Skip to content

Commit

Permalink
setup.py: use CC environment variable if available
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackYoup committed Aug 17, 2019
1 parent c10df5a commit 33aeb2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ def get_ethtool_macro():

try:
compiler = UnixCCompiler()
compiler.set_executable('compiler_so', os.getenv('CC', compiler.executables['compiler_so']))
with silenced_output('stderr'):
with silenced_output('stdout'):
compiler.compile([f.name])
Expand Down

0 comments on commit 33aeb2d

Please sign in to comment.