Skip to content

Conversation

@pentatonick
Copy link

Fixed ifstream::readsome() returning empty in LLVM18 OSX. This resulted in schema_compiler failing with [-1:-1] unexpected end of stream when reading .schema files.

std::basic_istream<CharT,Traits>::readsome is implementation specific and was returning empty in LLVM18 OSX.

std::stringstream was used as a in memory stream to allow readsome() to return non-empty.

Reference: https://en.cppreference.com/w/cpp/io/basic_istream/readsome

std::basic_istream<CharT,Traits>::readsome is very implementation specific and was returning empty in LLVM18 OSX.

stringstream was used as a in memory stream to allow readsome() to return non-empty
@pentatonick pentatonick force-pushed the fix-schema-compiler-osx-llvm18 branch from e9903de to 58e3bdd Compare August 8, 2024 02:53
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.

1 participant