Skip to content

Commit

Permalink
Fix Mac shared build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahajha committed Nov 10, 2024
1 parent 97acc81 commit b35bf20
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions recipes/mpdecimal/2.5.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ def generate(self):
tc.generate()

deps = AutotoolsDeps(self)
if is_apple_os(self) and self.settings.arch == "armv8":
deps.environment.append("LDFLAGS", ["-arch arm64"])
deps.environment.append("LDXXFLAGS", ["-arch arm64"])
if is_apple_os(self):
arch = "arm64" if self.settings.arch == "armv8" else "x86_64"
deps.environment.append("LDFLAGS", [f"-arch {arch}"])
deps.environment.append("LDXXFLAGS", [f"-arch {arch}"])
deps.generate()

def _build_msvc(self):
Expand Down

0 comments on commit b35bf20

Please sign in to comment.