Skip to content

Commit

Permalink
Update DMD to 10eb368c1b8c323e1921e991cb2bd8fce535e9b2
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladiwostok committed Jan 12, 2025
1 parent 2bb9689 commit 77553e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dmd
Submodule dmd updated 504 files
2 changes: 1 addition & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"libddoc": "~>0.8.0",
"dmd": {
"repository": "git+https://github.com/dlang/dmd.git",
"version": "4a90885ef8e0fc29334da91a4318f9ab52af9f80"
"version": "10eb368c1b8c323e1921e991cb2bd8fce535e9b2"
}
},
"targetPath" : "bin",
Expand Down
8 changes: 3 additions & 5 deletions src/dscanner/analysis/rundmd.d
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 77553e7

Please sign in to comment.