Skip to content

Conversation

chenrui333
Copy link

fixes #253

-mno-avx is x86_64 specific and since llvm@18, it fails with error: unsupported option

$ echo 'int main(){return 0;}' | > /opt/homebrew/opt/llvm\@17/bin/clang -x c - -c \ > --target=arm64-apple-macosx -mno-avx -o /dev/null clang: warning: argument unused during compilation: '-mno-avx' [-Wunused-command-line-argument] $ echo 'int main(){return 0;}' | /opt/homebrew/opt/llvm\@18/bin/clang -x c - -c \ --target=arm64-apple-macosx -mno-avx -o /dev/null clang: error: unsupported option '-mno-avx' for target 'arm64-apple-macosx' 
Signed-off-by: Rui Chen <rui@chenrui.dev>
@chenrui333
Copy link
Author

@dot-asm
Copy link
Collaborator

dot-asm commented Jul 23, 2025

Since the problem is demonstrably user-configuration-specific, the preferred course of action is to identify its root. Which is why the question was asked in #253 as opposed to rushing ahead with an dodge-the-problem fixes. Maybe there is more to it. With this in mind, would you answer the questions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants