mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
Merge pull request #25998 from czyzykowski/fix/25139-ghc-warnings
ghc: 8.0.2 without link warnings
This commit is contained in:
commit
d8f2284808
@ -19,7 +19,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1c8qc4fhkycynk4g1f9hvk53dj6a1vvqi6bklqznns6hw59m8qhi";
|
||||
};
|
||||
|
||||
patches = [] ++ stdenv.lib.optional stdenv.isLinux ./ghc-no-madv-free.patch;
|
||||
patches = []
|
||||
++ stdenv.lib.optional stdenv.isLinux ./ghc-no-madv-free.patch
|
||||
++ stdenv.lib.optional stdenv.isDarwin ./ghc-8.0.2-no-cpp-warnings.patch;
|
||||
|
||||
buildInputs = [ ghc perl hscolour sphinx ];
|
||||
|
||||
|
@ -0,0 +1,23 @@
|
||||
--- b/includes/rts/storage/ClosureMacros.h 2017-05-21 12:54:09.000000000 +0200
|
||||
+++ a/includes/rts/storage/ClosureMacros.h 2017-05-21 12:55:57.000000000 +0200
|
||||
@@ -499,8 +499,17 @@
|
||||
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
-#define ZERO_SLOP_FOR_LDV_PROF (defined(PROFILING))
|
||||
-#define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
|
||||
+#if defined(PROFILING)
|
||||
+#define ZERO_SLOP_FOR_LDV_PROF 1
|
||||
+#else
|
||||
+#define ZERO_SLOP_FOR_LDV_PROF 0
|
||||
+#endif
|
||||
+
|
||||
+#if defined(DEBUG) && !defined(THREADED_RTS)
|
||||
+#define ZERO_SLOP_FOR_SANITY_CHECK 1
|
||||
+#else
|
||||
+#define ZERO_SLOP_FOR_SANITY_CHECK 0
|
||||
+#endif
|
||||
|
||||
#if ZERO_SLOP_FOR_LDV_PROF || ZERO_SLOP_FOR_SANITY_CHECK
|
||||
#define OVERWRITING_CLOSURE(c) overwritingClosure(c)
|
||||
|
Loading…
Reference in New Issue
Block a user