Workaround bugzilla 24052 (dmd inliner slowdown)

This commit is contained in:
Dennis Korpel 2023-07-21 12:44:37 +02:00
parent d065ca4fe1
commit c655e0cf13
1 changed files with 5 additions and 0 deletions

View File

@ -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)