From 352af4c9dbfaa3d486de4e29c4401077082e0a1a Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Sat, 31 Oct 2026 02:57:03 +0100 Subject: [PATCH] refactor: drop the depArgs copy from the self-host project.cpp Crafter.Math and Crafter.Asset now get this project's args through the GitProjectSpec default. Loading this file therefore needs a crafter-build that exports ProjectArgs: after pulling, run ./build.sh before the bootstrap binary loads it. Co-Authored-By: Claude Opus 5.5 --- project.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/project.cpp b/project.cpp index 27ccf93..057485f 100644 --- a/project.cpp +++ b/project.cpp @@ -137,15 +137,8 @@ Remove it (do this before `crafter-build clean`, which deletes the repo the remo } extern "C" Configuration CrafterBuildProject(std::span args) { - std::vector depArgs(args.begin(), args.end()); - Configuration* math = GitProject({ - .source = { "https://forgejo.catcrafts.net/Catcrafts/Crafter.Math.git" }, - .args = depArgs, - }); - Configuration* asset = GitProject({ - .source = { "https://forgejo.catcrafts.net/Catcrafts/Crafter.Asset.git" }, - .args = depArgs, - }); + Configuration* math = GitProject({ .source = { "https://forgejo.catcrafts.net/Catcrafts/Crafter.Math.git" } }); + Configuration* asset = GitProject({ .source = { "https://forgejo.catcrafts.net/Catcrafts/Crafter.Asset.git" } }); static auto CrafterBuildLib = std::make_unique(); CrafterBuildLib->path = "./";