1 parent 842a112 commit 9fa7ed3Copy full SHA for 9fa7ed3
1 file changed
src/build/prepare.cppm
@@ -939,7 +939,7 @@ prepare_build(bool print_fingerprint,
939
// For musl-gcc the toolchain is fully self-contained
940
// (`<root>/x86_64-linux-musl/{include,lib}` is its own sysroot).
941
// musl-gcc's `-dumpmachine` reports `x86_64-linux-musl`.
942
- bool isMuslTc = tc->targetTriple.find("-musl") != std::string::npos;
+ bool isMuslTc = mcpp::toolchain::is_musl_target(*tc);
943
944
// A musl toolchain only really makes sense with static linkage —
945
// dynamic-musl binaries depend on a system /lib/ld-musl-x86_64.so.1
0 commit comments