diff --git a/source/dub/recipe/sdl.d b/source/dub/recipe/sdl.d index 0b4f05b..fc4c33f 100644 --- a/source/dub/recipe/sdl.d +++ b/source/dub/recipe/sdl.d @@ -304,8 +304,7 @@ string platform; if ("platform" in t.attributes) platform = "-" ~ t.attributes["platform"][0].value.get!string; - foreach (v; t.values) - dst[platform] ~= v.get!string; + dst[platform] ~= t.values.map!(v => v.get!string).array; } private void parsePlatformEnumArray(E, Es)(Tag t, ref Es[string] dst) @@ -526,3 +525,10 @@ lflags "-b" "-c" `); } + +unittest { + auto sdl = "name \"test\"\nsourcePaths"; + PackageRecipe rec; + parseSDL(rec, sdl, null, "testfile"); + assert("" in rec.buildSettings.sourcePaths); +}