From c655e0cf13f6fec7f23b69f33b1fbc69a585db1c Mon Sep 17 00:00:00 2001 From: Dennis Korpel Date: Fri, 21 Jul 2023 12:44:37 +0200 Subject: [PATCH] Workaround bugzilla 24052 (dmd inliner slowdown) --- src/dlangui/graphics/resources.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dlangui/graphics/resources.d b/src/dlangui/graphics/resources.d index 9bbf53d2..96f76101 100644 --- a/src/dlangui/graphics/resources.d +++ b/src/dlangui/graphics/resources.d @@ -206,6 +206,11 @@ EmbeddedResource[] embedResource(string resourceName)() { /// embed all resources from list EmbeddedResource[] embedResources(string[] resourceNames)() { + version(DigitalMars) + { + pragma(inline, false); // needed because https://issues.dlang.org/show_bug.cgi?id=24052 + } + static if (resourceNames.length == 0) return []; static if (resourceNames.length == 1)