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 <noreply@anthropic.com>
This commit is contained in:
parent
e62d33c7f0
commit
352af4c9db
1 changed files with 2 additions and 9 deletions
11
project.cpp
11
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<const std::string_view> args) {
|
||||
std::vector<std::string> 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<Configuration>();
|
||||
CrafterBuildLib->path = "./";
|
||||
|
|
|
|||
Loading…
Reference in a new issue