Skip to content

Commit

Permalink
valgrind: try fixing on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Aug 5, 2020
1 parent 2a2d5eb commit e5b91d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkgs/development/tools/analysis/valgrind/default.nix
Expand Up @@ -38,10 +38,6 @@ stdenv.mkDerivation rec {
sed -i coregrind/link_tool_exe_darwin.in \
-e 's/^my \$archstr = .*/my $archstr = "x86_64";/g'
echo "substitute hardcoded /usr/include/mach with ${xnu}/include/mach"
substituteInPlace coregrind/Makefile.in \
--replace /usr/include/mach ${xnu}/include/mach
substituteInPlace coregrind/m_debuginfo/readmacho.c \
--replace /usr/bin/dsymutil ${stdenv.cc.bintools.bintools}/bin/dsymutil
Expand All @@ -54,7 +50,8 @@ stdenv.mkDerivation rec {
postPatch = "";

configureFlags =
stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin") "--enable-only64bit";
stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin") "--enable-only64bit"
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin "--with-xcodedir=${xnu}/include";

doCheck = false; # fails

Expand Down

0 comments on commit e5b91d9

Please sign in to comment.