Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not add -mfpu and -mfloat-abi arguments if build target is Apple. #1307

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

atsushieno
Copy link
Contributor

This fixes macOS arm64 builds for me (which also seems failing on GitHub Actions builds here).


AppleClang does not support those arguments anymore:

c++: error: unsupported option '-mfpu=' for target 'arm64-apple-darwin23.6.0'
c++: error: unsupported option '-mfloat-abi=' for target 'arm64-apple-darwin23.6.0'
cc: error: unsupported option '-mfpu=' for target 'arm64-apple-darwin23.6.0'
cc: error: unsupported option '-mfloat-abi=' for target 'arm64-apple-darwin23.6.0'

seealso: https://stackoverflow.com/questions/29851128/gcc-arm64-aarch64-unrecognized-command-line-option-mfpu-neon

AppleClang does not support those arguments anymore:

```
c++: error: unsupported option '-mfpu=' for target 'arm64-apple-darwin23.6.0'
c++: error: unsupported option '-mfloat-abi=' for target 'arm64-apple-darwin23.6.0'
cc: error: unsupported option '-mfpu=' for target 'arm64-apple-darwin23.6.0'
cc: error: unsupported option '-mfloat-abi=' for target 'arm64-apple-darwin23.6.0'
```

seealso: https://stackoverflow.com/questions/29851128/gcc-arm64-aarch64-unrecognized-command-line-option-mfpu-neon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant