feat(workspace): add multi-package workspace builds with shared lock and CAS
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 4s
- SDK: Workspace/workspace() declaration plus Project::workspace_dependency() - Frontend: workspace.cpp discovery/evaluation alongside build.cpp - Main: per-member builds sharing the root vbs.lock and build/.vbs CAS, --member and --changed-since selection - Cross-member native linking; member builds do not steal the root compile_commands.json alias - Path-dependency snapshots exclude generated editor metadata - Verified in Docker GCC 16: 8/8 CTest suites; 3-member workspace fixture with unified lockfile
This commit is contained in:
1 parent
09c0a91d1d
commit
2970fbe25c
12 files changed
+515
-19
No files matched your search
@@ -34,6 +34,19 @@ struct CompiledDescriptor {
|
||||
bool recompiled{false};
|
||||
};
|
||||
|
||||
struct WorkspaceMember {
|
||||
std::string name;
|
||||
std::string path;
|
||||
};
|
||||
|
||||
struct WorkspaceDescription {
|
||||
int schema_version{1};
|
||||
std::vector<WorkspaceMember> members;
|
||||
};
|
||||
|
||||
// True when project_root contains workspace.cpp (a multi-member workspace root).
|
||||
[[nodiscard]] bool is_workspace_root(const std::filesystem::path &project_root);
|
||||
|
||||
// Discovers configuration C++ sources purely from filesystem membership (works without .git!):
|
||||
// build.cpp, optional build.profiles.cpp, sorted build-support/**/*.cpp, and explicit extra
|
||||
// sources.
|
||||
@@ -57,4 +70,8 @@ discover_profiles(const CompiledDescriptor &descriptor, const FrontendOptions &o
|
||||
evaluate_project(const CompiledDescriptor &descriptor, const ProfileContext &context,
|
||||
const FrontendOptions &options);
|
||||
|
||||
// Evaluates workspace(Workspace&) from a workspace.cpp descriptor and returns its members.
|
||||
[[nodiscard]] Void::Result::Result<WorkspaceDescription, Void::Result::Error>
|
||||
evaluate_workspace(const CompiledDescriptor &descriptor, const FrontendOptions &options);
|
||||
|
||||
} // namespace Void::Build::Config
|
||||
Reference in new issue
Block a user