Update DMD to 10eb368c1b8c323e1921e991cb2bd8fce535e9b2

This commit is contained in:
Vladiwostok 2025-01-12 17:34:48 +02:00 committed by Albert24GG
parent d2ef7fc47b
commit 0327db17b7
3 changed files with 5 additions and 7 deletions

2
dmd

@ -1 +1 @@
Subproject commit 4a90885ef8e0fc29334da91a4318f9ab52af9f80
Subproject commit 10eb368c1b8c323e1921e991cb2bd8fce535e9b2

View File

@ -18,7 +18,7 @@
"libddoc": "~>0.8.0",
"dmd": {
"repository": "git+https://github.com/dlang/dmd.git",
"version": "4a90885ef8e0fc29334da91a4318f9ab52af9f80"
"version": "10eb368c1b8c323e1921e991cb2bd8fce535e9b2"
}
},
"targetPath" : "bin",

View File

@ -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();
}