Skip to content

Commit

Permalink
remove CC for macosx (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
rflamary authored May 15, 2020
1 parent f126bfe commit 8d9ad11
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@


# add platform dependant optional compilation argument
if sys.platform.startswith('darwin') and not os.environ.get('POT_LEAVE_CC', ''):
os.environ["CC"] = "g++"
os.environ["CXX"] = "g++"
if sys.platform.startswith('darwin'):
opt_arg.append("-stdlib=libc++")
sdk_path = subprocess.check_output(['xcrun', '--show-sdk-path'])
os.environ['CFLAGS'] = '-isysroot "{}"'.format(sdk_path.rstrip().decode("utf-8"))
Expand Down

0 comments on commit 8d9ad11

Please sign in to comment.