Begin building libunwind.a as part of the runtimes (#6381)

This is the first real step towards building libc++ itself, and fleshes
out both the core runtimes management logic and the archive-based
runtimes logic for a quite simple runtime.

Nothing here causes us to _use_ libunwind, and in fact this doesn't
include even the "on-demand" aspect of building `libunwind`. Instead,
this just wires it up to the explicit `build-runtimes` subcommand for
simple testing. The full integration along side the target directory is
future work.
This commit is contained in:
Chandler Carruth
2025-11-18 08:23:29 +00:00
committed by GitHub
parent 77808cd5d7
commit 3930fb13a5
11 changed files with 252 additions and 1 deletions
+5
View File
@@ -225,6 +225,11 @@ auto InstallPaths::llvm_runtime_srcs() const -> std::filesystem::path {
"/src";
}
auto InstallPaths::libunwind_path() const -> std::filesystem::path {
// TODO: Adjust this to work equally well on Windows.
return prefix_ / "lib/carbon/libunwind";
}
auto InstallPaths::digest_path() const -> std::filesystem::path {
// TODO: Adjust this to work equally well on Windows.
return prefix_ / "lib/carbon/install_digest.txt";