Skip to content

Commit

Permalink
Update [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
pfernique committed Jan 30, 2018
1 parent a9fffba commit 1ba7f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py/autowig/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ def pre_processing(asg, headers, flags, **kwargs):

if '-x c++' in cmd:
asg._language = 'c++'
s = subprocess.Popen(['clang', '-x', 'c++', '-v', '-E', devnull],
s = subprocess.Popen([os.environ.get('CXX', 'clang'), '-x', 'c++', '-v', '-E', devnull],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
elif '-x c' in cmd:
asg._language = 'c'
s = subprocess.Popen(['clang', '-x', 'c', '-v', '-E', devnull],
s = subprocess.Popen([os.environ.get('CC', 'clang'), '-x', 'c', '-v', '-E', devnull],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
else:
raise ValueError('\'flags\' parameter must include the `-x` option with `c` or `c++`')
Expand Down

0 comments on commit 1ba7f56

Please sign in to comment.