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
3ad1951057
commit
973c2708fe
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) {
|
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" } });
|
||||||
Configuration* math = GitProject({
|
Configuration* asset = GitProject({ .source = { "https://forgejo.catcrafts.net/Catcrafts/Crafter.Asset.git" } });
|
||||||
.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,
|
|
||||||
});
|
|
||||||
|
|
||||||
static auto CrafterBuildLib = std::make_unique<Configuration>();
|
static auto CrafterBuildLib = std::make_unique<Configuration>();
|
||||||
CrafterBuildLib->path = "./";
|
CrafterBuildLib->path = "./";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue