Skip to content

CI: drop fmt dependency on macOS and MSYS2#3133

Merged
neheb merged 1 commit intomainfrom
kmilos/ci_drop_fmt
Jan 27, 2025
Merged

CI: drop fmt dependency on macOS and MSYS2#3133
neheb merged 1 commit intomainfrom
kmilos/ci_drop_fmt

Conversation

@kmilos
Copy link
Collaborator

@kmilos kmilos commented Jan 27, 2025

No longer needed as C++20 is now used and these platforms ship toolchains w/ std::format.

@kmilos kmilos added the CI Issues related with CI jobs label Jan 27, 2025
@kmilos kmilos force-pushed the kmilos/ci_drop_fmt branch from 8415016 to 184a610 Compare January 27, 2025 12:40
@kmilos
Copy link
Collaborator Author

kmilos commented Jan 27, 2025

Hm, looks like in CMake we check for std::format before setting the compiler flags...

include(cmake/findDependencies.cmake REQUIRED)
include(cmake/compilerFlags.cmake REQUIRED)

Any preference in how to handle this @neheb - just swap the order, or add another dedicated CMAKE_CXX_STANDARD set inside findDependencies.cmake?

@neheb
Copy link
Collaborator

neheb commented Jan 27, 2025

Swap. It becomes alphabetical anyway.

@kmilos
Copy link
Collaborator Author

kmilos commented Jan 27, 2025

Not it, std::format is actually tested for after already in cmake/generateConfigFile.cmake...

So this is a macOS/Xcode only thing, I understood it should be supported since XCode 15...

@kmilos
Copy link
Collaborator Author

kmilos commented Jan 27, 2025

Ok, looks like it's not supported by libc++ for the "default" macOS 13 target (might have to bump to 13.3 somehow?), while it is ok for macOS 14...

Edit: libc++ in Xcode 15.3 onwards, which is not available on macOS 13 runners...

For now, let's just leave it installed in workflows using macOS 13.

@kmilos kmilos force-pushed the kmilos/ci_drop_fmt branch 2 times, most recently from 73865e2 to a9933aa Compare January 27, 2025 15:48
@kmilos kmilos force-pushed the kmilos/ci_drop_fmt branch from a9933aa to c85c3aa Compare January 27, 2025 16:01
@kmilos kmilos marked this pull request as ready for review January 27, 2025 16:03
@kmilos kmilos requested a review from neheb January 27, 2025 16:03
@neheb neheb merged commit e4d8d30 into main Jan 27, 2025
64 checks passed
@neheb neheb deleted the kmilos/ci_drop_fmt branch January 27, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Issues related with CI jobs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants