swift: fix build w/glibc-2.32

This commit is contained in:
Maximilian Bosch 2020-08-21 13:31:15 +02:00
parent 5a3dd6b2d0
commit 9ad913dd6f
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -245,6 +245,10 @@ stdenv.mkDerivation {
--replace usr "$PREFIX"
substituteInPlace swift-corelibs-xctest/build_script.py \
--replace usr "$PREFIX"
substituteInPlace swift-corelibs-foundation/CoreFoundation/PlugIn.subproj/CFBundle_InfoPlist.c \
--replace "if !TARGET_OS_ANDROID" "if TARGET_OS_MAC || TARGET_OS_BSD"
substituteInPlace swift-corelibs-foundation/CoreFoundation/PlugIn.subproj/CFBundle_Resources.c \
--replace "if !TARGET_OS_ANDROID" "if TARGET_OS_MAC || TARGET_OS_BSD"
'';
configurePhase = ''