Skip to content

Commit

Permalink
Fix build failure on M1 Macs (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
brownj85 authored Aug 16, 2021
1 parent a728396 commit 0d4d5d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
* Corrects bug in the function `photon_number_covar` that gave incorrect results when the covariance between two modes with finite displacements was calculated.
[#264](https://github.com/XanaduAI/thewalrus/pull/264)

* Fixes a bug in `setup.py` that would cause the build to fail when using miniforge for M1 macs.
[#273](https://github.com/XanaduAI/thewalrus/pull/273)

### Breaking changes

Expand Down
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,6 @@ def build_extensions():
("-Xpreprocessor", "-fopenmp", "-mmacosx-version-min=10.9", "-shared")
)
config["extra_link_args"].extend(("-Xpreprocessor", "-fopenmp", "-lomp"))
config["include_dirs"].append(
"/Applications/Xcode.app/Contents/Developer/Toolchains/"
"XcodeDefault.xctoolchain/usr/include/c++/v1/"
)
else:
config["extra_compile_args"].extend(("-fopenmp", "-shared"))
config["extra_link_args"].extend(("-fopenmp",))
Expand Down

0 comments on commit 0d4d5d3

Please sign in to comment.