-
Notifications
You must be signed in to change notification settings - Fork 205
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
macOS test failure with LLVM >= 10 #479
Comments
LLVM 10 got rid of the default definition of
If you comment out the
|
The release notes for Clang 10 mention this:
I'm still trying to figure out what the default value of this flag is. Edit: there's also some rationale in https://reviews.llvm.org/D68055 |
I've been playing some more with the Clang frontend. I'm a bit confused because Contents of #include <stdio.h>
int main(int argc, char *argv[]) {
#ifdef __GNUC__
int gnuc = __GNUC__;
printf("yep %d\n", gnuc);
#else
printf("nope.\n");
#endif
return 0;
} Apple Clang:
LLVM Clang 9 from binary:
LLVM Clang 11 from binary:
This last bit is interesting... I wasn't expecting that part. Maybe I need to fiddle with the |
Ok, so I found the place where It does look like it's being turned directly into an Still trying to figure out how Clang the frontend has |
The default value of I guess as long as we track that we should be fine, or else we could dig more into why we're not able to take advantage of this code path through the |
Even after you fix #478 , you will still get test failures on macOS with LLVM >= 10. Errors seem to look like:
I was hoping to revert to the macOS 10.15 SDK but it appears not to be installed on Github Actions.
Example failure: https://github.com/terralang/terra/runs/1751733849
Archive of the build log:
build_log.txt
The text was updated successfully, but these errors were encountered: