anchor.diff:          rm tests/d2/dmd-testsuite/runnable/variadic.d
       ''
   
  -    + stdenv.lib.optionalString (!bootstrapVersion) ''
  -        # https://github.com/NixOS/nixpkgs/issues/29611
  -        rm tests/sanitizers/asan_*
  +    + stdenv.lib.optionalString (stdenv.hostPlatform.isLinux && !bootstrapVersion) ''
  +	# http://forum.dlang.org/thread/xtbbqthxutdoyhnxjhxl@forum.dlang.org
  +	rm -r tests/dynamiccompile
       '';
   
       ROOT_HOME_DIR = "$(echo ~root)";
  
positive.code:         substituteInPlace gen/programs.cpp \
              --replace "gcc" "clang"
  
  	# Was not able to compile on darwin due to "__inline_isnanl"
  	# being undefined.
  	substituteInPlace dmd2/root/port.c --replace __inline_isnanl __inline_isnan
      ''
  
      + stdenv.lib.optionalString (stdenv.hostPlatform.isLinux && bootstrapVersion) ''
        substituteInPlace dmd2/root/port.c \
          --replace "#include <bits/mathdef.h>" "#include <complex.h>"
      ''
  
      + stdenv.lib.optionalString (bootstrapVersion) ''
  
negative.code:       "phobos/std/datetime/timezone.d";
  
      postPatch = ''
          substituteInPlace runtime/${datetimePath} \
              --replace "import core.time;" "import core.time;import std.path;"
  
  