fix build with 2.065 frontend
- SortedRange wasn't an OutputRange, see https://github.com/dlang/phobos/commit/3f4fde200294d194a82d0a28e6401978d6138395#diff-b7fc67b6fcb7d1a521918d06ffe03587R8386
1 parent 38d9fc7 commit 77a58d97f020560363604d046730e33c8f473230
@Martin Nowak Martin Nowak authored on 15 May 2017
Showing 1 changed file
View
2
■■■
source/dub/recipe/packagerecipe.d
// collect import files and remove sources
import std.algorithm : copy, setDifference;
 
auto importFiles = collectFiles(importPaths, "*.{d,di}").sort();
immutable nremoved = importFiles.setDifference(sourceFiles).copy(importFiles).length;
immutable nremoved = importFiles.setDifference(sourceFiles).copy(importFiles.release).length;
importFiles = importFiles[0 .. $ - nremoved];
dst.addImportFiles(importFiles.release);
 
dst.addStringImportFiles(collectFiles(stringImportPaths, "*"));