tbb_2021_11: fix build on musl

the previous substitution resulted in an invalid CMakeLists.txt

Change-Id: I9ad37811c76239fa1d0238c71727cda9936939f4
Signed-off-by: Yureka <yureka@cyberchaos.dev>
This commit is contained in:
Yureka 2024-07-31 01:04:43 +02:00
parent af64a865e4
commit 2496c495ef

View File

@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
# test/conformance/conformance_resumable_tasks.cpp:37:24: error: suspend is not a member of tbb::v1::task; did you mean tbb::detail::r1::suspend? # test/conformance/conformance_resumable_tasks.cpp:37:24: error: suspend is not a member of tbb::v1::task; did you mean tbb::detail::r1::suspend?
postPatch = lib.optionalString stdenv.hostPlatform.isMusl '' postPatch = lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace test/CMakeLists.txt \ substituteInPlace test/CMakeLists.txt \
--replace 'conformance_resumable_tasks' "" --replace-fail 'tbb_add_test(SUBDIR conformance NAME conformance_resumable_tasks DEPENDENCIES TBB::tbb)' ""
''; '';
meta = with lib; { meta = with lib; {