Skip to content

cmake: move 'continue' statement to avoid cmake bug#14182

Merged
andrewrk merged 1 commit intoziglang:masterfrom
BratishkaErik:fix-cmake-1
Jan 5, 2023
Merged

cmake: move 'continue' statement to avoid cmake bug#14182
andrewrk merged 1 commit intoziglang:masterfrom
BratishkaErik:fix-cmake-1

Conversation

@BratishkaErik
Copy link
Contributor

@BratishkaErik BratishkaErik commented Jan 3, 2023

Looks rather verbose (because we are workarounding https://gitlab.kitware.com/cmake/cmake/-/issues/22052 and because we did not have labelled loops in CMake), but at least it is touching less code than #14033 and should not cause regressions like #14093 (I unfortunately did not succeed in setting up macOS in VM, so this PR needs testing there)

Closes #14136

@BratishkaErik
Copy link
Contributor Author

BratishkaErik commented Jan 3, 2023

@lamersc would you like to test if this cause regression or not? You just need to run brew edit zig and change line

head "https://github.com/ziglang/zig.git", branch: "master"

to:

head "https://github.com/BratishkaErik/zig.git", branch: "fix-cmake-1"

And then build like regular zig

@ddeletedaccount
Copy link

ddeletedaccount commented Jan 4, 2023

would you like to test if this cause regression or not?

Will give it a test after classes 👍

@andrewrk andrewrk merged commit fe2bd9d into ziglang:master Jan 5, 2023
@BratishkaErik BratishkaErik deleted the fix-cmake-1 branch January 5, 2023 10:22
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.

cmake llvm detection doesn't report errors properly

3 participants