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

Block enum from using build tags #39

Merged
merged 1 commit into from
Mar 28, 2023
Merged

Block enum from using build tags #39

merged 1 commit into from
Mar 28, 2023

Conversation

bbredesen
Copy link
Owner

Fixes #37

Platform specific enum values will now be accessible on all platforms. This fixes an issue with generating String() methods. While stringer allows specification of -tags to include other platforms, you would still get compile errors because the underlying const value is hidden by the build tag.

This does not affect commands, structs, extensions, etc. All other types are still guarded with go:build if specified as a platform-specific type in vk.xml

This PR also updates the default generated platforms to include macos and metal

@bbredesen bbredesen added this to the v0.2.0 milestone Mar 28, 2023
@bbredesen bbredesen merged commit f7dcceb into main Mar 28, 2023
@bbredesen bbredesen deleted the bugfix/37 branch March 28, 2023 17:31
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.

Platform specific constants accessed in enum_string_N.go causes compilation errors
1 participant