-
Notifications
You must be signed in to change notification settings - Fork 17
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
warning: overriding the module target triple with x86_64-apple-macosx10.15.0 #281
Comments
Why clang tries to "override" the target triple to $ clang --version
clang version 9.0.1
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /usr/local/opt/llvm@9/bin |
The warning is generated here: |
My guess is:
I found crystal-lang fixes this problem here. This is true until crystal runs on iOS or watchOS. |
Hmm, |
by explicitly passing `-target` refs #281
Thanks to @LEA0317, we've found that clang computes "effective" target triple. That's why other commands like rustc reads special envvar for this issue. So there should be two ways to suppress this warning.
But 1. is practically impossible because the clang's algorithm is pretty long and depends on heuristics. PR #282 fixes this issue by solution 2. |
Found one more case this warning appears.
mac-sys-info crate returns |
After #280, I got the following warning.
The program itself works fine, but these warnings are a bit annoying.
The text was updated successfully, but these errors were encountered: