catch2_3: fix pkgsLLVM checkPhase (#458566)

This commit is contained in:
Grimmauld 2025-11-04 20:22:11 +00:00 committed by GitHub
commit 6803de389f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -40,9 +40,9 @@ stdenv.mkDerivation rec {
"-DCATCH_BUILD_TESTING=${if doCheck then "ON" else "OFF"}"
"-DCATCH_ENABLE_WERROR=OFF"
]
++ lib.optionals (stdenv.hostPlatform.isDarwin && doCheck) [
++ lib.optionals (stdenv.cc.isClang && doCheck) [
# test has a faulty path normalization technique that won't work in
# our darwin build environment https://github.com/catchorg/Catch2/issues/1691
# our darwin/LLVM build environment https://github.com/catchorg/Catch2/issues/1691
"-DCMAKE_CTEST_ARGUMENTS=-E;ApprovalTests"
];