`alias Nullable.get this` will soon be deprecated. Use `.get`.
1 parent 467f7db commit 53298cc0fe307fec91dcb126d98ef6a98e89a21e
@Mathis Beer Mathis Beer authored on 13 Jun 2019
Showing 2 changed files
View
2
■■■
source/dub/compilers/dmd.d
// Don't use Optlink by default on Windows
version (Windows) {
const is64bit = isWow64();
if (!is64bit.isNull)
arch_flags = [is64bit ? "-m64" : "-m32mscoff"];
arch_flags = [is64bit.get ? "-m64" : "-m32mscoff"];
}
break;
case "x86": arch_flags = ["-m32"]; break;
case "x86_64": arch_flags = ["-m64"]; break;
View
2
■■■
source/dub/dub.d
} else if (!basepack.subPackages.canFind!(p => p.path.length)) {
// note: external sub packages are handled further below
auto spr = basepack.getInternalSubPackage(subname);
if (!spr.isNull) {
auto sp = new Package(spr, basepack.path, basepack);
auto sp = new Package(spr.get, basepack.path, basepack);
m_remotePackages[sp.name] = sp;
return sp;
} else {
logDiagnostic("Sub package %s doesn't exist in %s %s.", name, basename, dep.version_);