fix macOS segfaults in tests #8
Open
Mythra wants to merge 5 commits into
Open
Conversation
this commit adds in support for building, and compiling shaders on windows.
This was referenced Dec 17, 2025
Open
this fixes the segfault when running tests while on macOS. this roughly comes down to two rough classes of issues: 1. macOS is a lot more strict around allocations, and enforcing that they seemingly are correct. - First macOS like windows, wants a size to be a power of two. - Second macOS enforces that size is not less than alignment. these seem small but were the cause of the 'SEGFAULTS'. 2. macOS's standard library also is not a fan of modifying lists/sets/etc. AS they're being iterated. it did cause some small issues with tests, i've fixed the ones that the test suite exercised, but this is not _necissarily_ all of them. If you're seeing improper compilations it may be best to look into other passes doing this.
this also fixes a potential for looping forever, although i was only able to hit this with weirdly formatted vertex shaders that may not have been valid. it still fixes the actual potential for it happening, and frankly looks cleaner.
da8fa22 to
f8d995e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR builds ontop of #7 , and as a result the diff looks massive because of the enumerations being copied on the windows pr branch along with containing all the windows code.
I recommend just viewing the changes at: 9e99f68...f8d995e until the windows PR gets merged.
This way you see the small ~200 line pr.
this fixes the segfault when running tests while on macOS. this
roughly comes down to two rough classes of issues:
they seemingly are correct.
these seem small but were the cause of the 'SEGFAULTS'.
lists/sets/etc. AS they're being iterated. it did cause some small
issues with tests, i've fixed the ones that the test suite exercised,
but this is not necissarily all of them. If you're seeing improper
compilations it may be best to look into other passes doing this.