Unverified Commit afbc7209 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

gperftools: avoid pthread benchmarks on MinGW (#476270)

parents 5c53c2be 59b4ef94
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
diff --git a/Makefile.am b/Makefile.am
index 52d5e2b..62b8ae6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -523,6 +523,8 @@ debugallocation_test_LDADD = libtcmalloc_debug.la libgtest.la
 
 endif WITH_DEBUGALLOC
 
+if !MINGW
+
 noinst_LTLIBRARIES += librun_benchmark.la
 librun_benchmark_la_SOURCES = \
 	benchmark/run_benchmark.cc
@@ -552,8 +554,7 @@ binary_trees_shared_SOURCES = benchmark/binary_trees.cc
 binary_trees_shared_LDFLAGS = $(TCMALLOC_FLAGS) $(AM_LDFLAGS)
 binary_trees_shared_LDADD = libtcmalloc_minimal.la
 
-if !MINGW
 if WITH_HEAP_PROFILER_OR_CHECKER
 
 noinst_PROGRAMS += malloc_bench_shared_full
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,9 @@ stdenv.mkDerivation (finalAttrs: {
      url = "https://src.fedoraproject.org/rpms/gperftools/raw/88ce8ee43a12b1a8146781a1b4d9abbd8df8af0e/f/gperftools-2.17-disable-generic-dynamic-tls.patch";
      hash = "sha256-IOLUf9mCEA+fVSJKU94akcnXTIm7+t+S9cjBHsEDwFA=";
    })
  ]
  ++ lib.optionals stdenv.hostPlatform.isMinGW [
    ./mingw-disable-benchmarks.patch
  ];

  nativeBuildInputs = [ autoreconfHook ];