Update DMD to 10eb368c1b8c323e1921e991cb2bd8fce535e9b2
This commit is contained in:
parent
2bb968993c
commit
77553e746e
2
dmd
2
dmd
|
|
@ -1 +1 @@
|
|||
Subproject commit 4a90885ef8e0fc29334da91a4318f9ab52af9f80
|
||||
Subproject commit 10eb368c1b8c323e1921e991cb2bd8fce535e9b2
|
||||
2
dub.json
2
dub.json
|
|
@ -18,7 +18,7 @@
|
|||
"libddoc": "~>0.8.0",
|
||||
"dmd": {
|
||||
"repository": "git+https://github.com/dlang/dmd.git",
|
||||
"version": "4a90885ef8e0fc29334da91a4318f9ab52af9f80"
|
||||
"version": "10eb368c1b8c323e1921e991cb2bd8fce535e9b2"
|
||||
}
|
||||
},
|
||||
"targetPath" : "bin",
|
||||
|
|
|
|||
|
|
@ -80,16 +80,14 @@ Module parseDmdModule(string fileName, string sourceCode)
|
|||
private void setupDmd()
|
||||
{
|
||||
import std.path : dirName;
|
||||
import dmd.arraytypes : Strings;
|
||||
import dmd.globals : global;
|
||||
import dmd.globals : global, ImportPathInfo;
|
||||
|
||||
auto dmdParentDir = dirName(dirName(dirName(dirName(__FILE_FULL_PATH__))));
|
||||
auto dmdDirPath = dmdParentDir ~ "/dmd" ~ "\0";
|
||||
auto druntimeDirPath = dmdParentDir ~ "/dmd/druntime/src" ~ "\0";
|
||||
global.params.useUnitTests = true;
|
||||
global.path = Strings();
|
||||
global.path.push(dmdDirPath.ptr);
|
||||
global.path.push(druntimeDirPath.ptr);
|
||||
global.path.push(ImportPathInfo(dmdDirPath.ptr));
|
||||
global.path.push(ImportPathInfo(druntimeDirPath.ptr));
|
||||
global.errors = 0;
|
||||
initDMD();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue