Merge pull request #139008 from trofi/fix-llvm-5-for-gcc-11

llvm_5: disable print_context.c (fails on gcc-11 / dwarf-5)
This commit is contained in:
Timothy DeHerrera 2021-09-23 20:19:29 -06:00 committed by GitHub
commit 4493c55376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,6 +82,9 @@ stdenv.mkDerivation ({
substituteInPlace unittests/Support/CMakeLists.txt \
--replace "Path.cpp" ""
rm unittests/Support/Path.cpp
# llvm-5 does not support dwarf-5 style info, fails on gcc-11.
rm test/tools/llvm-symbolizer/print_context.c
'' + optionalString stdenv.isAarch64 ''
patch -p0 < ${../../aarch64.patch}
'' + optionalString stdenv.hostPlatform.isMusl ''