Merge pull request #313656 from wegank/castxml-fix

castxml: fix build on darwin
This commit is contained in:
Weijia Wang 2024-05-23 12:54:02 +02:00 committed by GitHub
commit 0a25b428cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,13 +37,10 @@ stdenv.mkDerivation (finalAttrs: {
];
buildInputs = [
libclang
libffi
libxml2
zlib
];
propagatedBuildInputs = [
] ++ lib.optionals (!stdenv.isDarwin) [
libclang
];
@ -51,6 +48,8 @@ stdenv.mkDerivation (finalAttrs: {
(lib.cmakeOptionType "path" "CLANG_RESOURCE_DIR" "${lib.getDev libclang}")
(lib.cmakeBool "SPHINX_HTML" withHTML)
(lib.cmakeBool "SPHINX_MAN" withManual)
] ++ lib.optionals stdenv.isDarwin [
(lib.cmakeOptionType "path" "Clang_DIR" "${lib.getDev libclang}/lib/cmake/clang")
];
# 97% tests passed, 97 tests failed out of 2881