-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat: implement __has_declspec_attribute
#514
feat: implement __has_declspec_attribute
#514
Conversation
src/target.zig
Outdated
@@ -684,6 +684,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 { | |||
.watchos => "watchos", | |||
.driverkit => "driverkit", | |||
.shadermodel => "shadermodel", | |||
.liteos => "liteos", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this in order to make it compile, but #510 fixes this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
__has_declspec_attribute(<anything>)
should return 0
when langopts.declspec_attrs == false
.
CI failure is definitely because of llvm-17, I'll try to figure it out.
@Vexu Hmm, am I misundestanding the usage of
at the top of the file? I was under the impression that including the args switches on the options in tests. If that's the case then the ifs would reflect accurately on the behaviour, no? |
No you understand correctly, I was talking about the case where |
Ah should I add a check there as well? I'm assuming you mean |
Something like that yes. |
Thanks! |
closes #419
CI seems to be failing, not sure if it's related to this?