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 runtime/phobos/std/path.d \
              --replace "\"/root" "\"${ROOT_HOME_DIR}"
  
          # TODO
          substituteInPlace runtime/druntime/src/core/memory.d \
              --replace "assert(z is null);" "//assert(z is null);"
      ''
  
negative.code:                        "-DLDC_WITH_LLD=OFF"
                         # Xcode 9.0.1 fixes that bug according to ldc release notes
                         "-DRT_ARCHIVE_WITH_LDC=OFF"
                        )
      '';
  
  