Skip to content

Fixed Windows MSVC Compilation#6096

Closed
deacon8 wants to merge 1 commit intoggml-org:masterfrom
deacon8:master
Closed

Fixed Windows MSVC Compilation#6096
deacon8 wants to merge 1 commit intoggml-org:masterfrom
deacon8:master

Conversation

@deacon8
Copy link
Copy Markdown

@deacon8 deacon8 commented Mar 16, 2024

Quick and ugly fix.

MSVC only allows for a certain number of nested if's.

Since else-if's count as nested, moving the affected branch up one else-if position is enough for compilation.

Not very sustainable moving forward though, so some refactoring would probably be good.

fixes #6093

@ggerganov
Copy link
Copy Markdown
Member

Superseded by #6101

@ggerganov ggerganov closed this Mar 16, 2024
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.

Compilation fails with Cmake on Windows (since #5970): error C1061

2 participants