//build/toolchain/musl-host-gcc: implement
This is a cc_toolchain which runs on x86 systems with Linux/gcc and
targets Smalltown via static musl builds.
It is currently unused, but can be tested by trying to build any
cc_binary with
--crosstool_top=//build/toolchain/musl-host-gcc:musl_host_cc_suite .
Test Plan: This has been tested manually by running it against a simple cc_binary. Another revision on top of this will attempt to build mkfs.xfs with it.
X-Origin-Diff: phab/D623
GitOrigin-RevId: ebdf51ee76d9d5a7fd94725c66ef53783f787df7
diff --git a/WORKSPACE b/WORKSPACE
index 56f5bba..9ba620d 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -214,3 +214,7 @@
strip_prefix = "qboot-a5300c4949b8d4de2d34bedfaed66793f48ec948",
urls = ["https://github.com/bonzini/qboot/archive/a5300c4949b8d4de2d34bedfaed66793f48ec948.tar.gz"],
)
+
+# Load musl toolchain Smalltown sysroot tarball into external repository.
+load("//build/toolchain/musl-host-gcc:sysroot.bzl", "musl_sysroot_repositories")
+musl_sysroot_repositories()