From 0d4d5d3a48233df77a6accde3b858faf1aafd598 Mon Sep 17 00:00:00 2001 From: Jack Brown Date: Mon, 16 Aug 2021 12:32:13 -0400 Subject: [PATCH] Fix build failure on M1 Macs (#273) --- .github/CHANGELOG.md | 2 ++ setup.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index adeb38857..80621a3d3 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -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 diff --git a/setup.py b/setup.py index 6d401188a..fd13b7770 100644 --- a/setup.py +++ b/setup.py @@ -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",))