anchor.diff:  
       buildPhase = ''
           ${buildCmd}
  +        ln -s ${ldcBuild.out}/bin/ldmd2 $PWD/bin/ldmd2
           ${testCmd}
       '';
   
  
positive.code:                         "-DLDC_WITH_LLD=OFF"
                          # Xcode 9.0.1 fixes that bug according to ldc release notes
                          "-DRT_ARCHIVE_WITH_LDC=OFF"
                          "-DD_COMPILER=${ldcBuild}/bin/ldmd2"
                        )
      '';
  
  
negative.code:         #
          #==============================
          #Test failed: expected rc == 0, exited with rc == 1
          rm ldc-${version}-src/tests/d2/dmd-testsuite/runnable/variadic.d
      ''
  
      + stdenv.lib.optionalString (!bootstrapVersion) ''
  	    # http://forum.dlang.org/thread/xtbbqthxutdoyhnxjhxl@forum.dlang.org
  	    rm -r ldc-${version}-src/tests/dynamiccompile
  
              # https://github.com/NixOS/nixpkgs/issues/34817
  	    rm -r ldc-${version}-src/tests/plugins/addFuncEntryCall
      '';
  
      ROOT_HOME_DIR = "$(echo ~root)";
  