Skip to content

Commit

Permalink
Fix libffi for m1 mac
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
  • Loading branch information
jeremiahsnapp committed Mar 1, 2021
1 parent a1e9c90 commit a789eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/software/libffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# Works on all platforms, and is compatible on 32bit platforms as well
configure_command << "--disable-multi-os-directory"
# Workaround issue on Apple M1 https://github.com/libffi/libffi/issues/571
configure_command << "--build=aarch64-apple-darwin20.2.0" if mac_os_x? && arm?
configure_command << "--build=aarch64-apple-darwin#{ohai["os_version"]}" if mac_os_x? && arm?

# add the --disable-multi-os-directory flag to 3.2.1
if version == "3.2.1"
Expand Down

0 comments on commit a789eca

Please sign in to comment.