From 0327db17b7cabbaeddca7cf060875a241e23fec0 Mon Sep 17 00:00:00 2001 From: Vladiwostok Date: Sun, 12 Jan 2025 17:34:48 +0200 Subject: [PATCH] Update DMD to 10eb368c1b8c323e1921e991cb2bd8fce535e9b2 --- dmd | 2 +- dub.json | 2 +- src/dscanner/analysis/rundmd.d | 8 +++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/dmd b/dmd index 4a90885..10eb368 160000 --- a/dmd +++ b/dmd @@ -1 +1 @@ -Subproject commit 4a90885ef8e0fc29334da91a4318f9ab52af9f80 +Subproject commit 10eb368c1b8c323e1921e991cb2bd8fce535e9b2 diff --git a/dub.json b/dub.json index dd9ea22..f8ac3db 100644 --- a/dub.json +++ b/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", diff --git a/src/dscanner/analysis/rundmd.d b/src/dscanner/analysis/rundmd.d index 8e5f005..da23849 100644 --- a/src/dscanner/analysis/rundmd.d +++ b/src/dscanner/analysis/rundmd.d @@ -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(); }