Merge pull request #149407 from cbrewster/cb-swift-fix-build-libuuid
swift: Fix test failure during build
This commit is contained in:
commit
6c3d903d2a
1 changed files with 3 additions and 3 deletions
|
@ -340,7 +340,7 @@ stdenv.mkDerivation {
|
||||||
# TODO: consider using stress-tester and integration-test.
|
# TODO: consider using stress-tester and integration-test.
|
||||||
|
|
||||||
# Match the wrapped version of Swift to be installed.
|
# Match the wrapped version of Swift to be installed.
|
||||||
export LIBRARY_PATH=${icu}/lib:${libgcc}/lib:${libuuid.out}/lib:$l
|
export LIBRARY_PATH=${lib.makeLibraryPath [icu libgcc libuuid]}:$l
|
||||||
|
|
||||||
checkTarget=check-swift-all-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}
|
checkTarget=check-swift-all-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}
|
||||||
ninjaFlags='-C buildbot_linux/swift-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}'
|
ninjaFlags='-C buildbot_linux/swift-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}'
|
||||||
|
@ -363,13 +363,13 @@ stdenv.mkDerivation {
|
||||||
--set CC $out/bin/clang \
|
--set CC $out/bin/clang \
|
||||||
--suffix C_INCLUDE_PATH : $out/lib/swift/clang/include \
|
--suffix C_INCLUDE_PATH : $out/lib/swift/clang/include \
|
||||||
--suffix CPLUS_INCLUDE_PATH : $out/lib/swift/clang/include \
|
--suffix CPLUS_INCLUDE_PATH : $out/lib/swift/clang/include \
|
||||||
--suffix LIBRARY_PATH : ${icu}/lib:${libgcc}/lib:${libuuid.out}/lib
|
--suffix LIBRARY_PATH : ${lib.makeLibraryPath [icu libgcc libuuid]}
|
||||||
|
|
||||||
wrapProgram $out/bin/swiftc \
|
wrapProgram $out/bin/swiftc \
|
||||||
--set CC $out/bin/clang \
|
--set CC $out/bin/clang \
|
||||||
--suffix C_INCLUDE_PATH : $out/lib/swift/clang/include \
|
--suffix C_INCLUDE_PATH : $out/lib/swift/clang/include \
|
||||||
--suffix CPLUS_INCLUDE_PATH : $out/lib/swift/clang/include \
|
--suffix CPLUS_INCLUDE_PATH : $out/lib/swift/clang/include \
|
||||||
--suffix LIBRARY_PATH : ${icu}/lib:${libgcc}/lib:${libuuid.out}/lib
|
--suffix LIBRARY_PATH : ${lib.makeLibraryPath [icu libgcc libuuid]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Hack to avoid build and install directories in RPATHs.
|
# Hack to avoid build and install directories in RPATHs.
|
||||||
|
|
Loading…
Reference in a new issue