Skip to content

Commit

Permalink
Symmetry: Use custom dub v1.35.1
Browse files Browse the repository at this point in the history
Which, with LDC on Windows, applies dflags affecting symbol
visibility to *all* deps.
  • Loading branch information
kinke committed Jan 9, 2024
1 parent d1f3f86 commit 898cf93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dub.selections.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"fileVersion": 1,
"versions": {
"dub": "1.35.0",
"dub": {"repository":"git+https://github.com/symmetryinvestments/dub.git","version":"651af70a1bc758556a19a23644f4582df63885a2"},
"unit-threaded": "2.1.7"
}
}
16 changes: 10 additions & 6 deletions src/reggae/reggae.d
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,16 @@ private string[] dubImportFlags(in imported!"reggae.options".Options options) {
import std.path: buildPath;
import reggae.path: dubPackagesDir;

enum dubSelectionsJson = import("dub.selections.json");
enum dubVersion = dubSelectionsJson
.parseJSON
["versions"]
["dub"]
.str;
version(all) {
enum dubVersion = "1.35.0";
} else {
enum dubSelectionsJson = import("dub.selections.json");
enum dubVersion = dubSelectionsJson
.parseJSON
["versions"]
["dub"]
.str;
}
auto dubObj = new Dub(options.projectPath);
dubObj.fetch("dub", Version(dubVersion), dubObj.defaultPlacementLocation, FetchOptions.none);
const dubSourcePath = buildPath(dubPackagesDir, "dub", dubVersion, "dub", "source");
Expand Down

0 comments on commit 898cf93

Please sign in to comment.