Skip to content

Commit

Permalink
Workaround bugzilla 24052 (dmd inliner slowdown) (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel authored Jul 21, 2023
1 parent d065ca4 commit f33e0d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/dlangui/graphics/resources.d
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f33e0d2

Please sign in to comment.