Skip to content

Commit 9fa7ed3

Browse files
committed
refactor: last stray musl substring check → is_musl_target (follow-up to step 4)
1 parent 842a112 commit 9fa7ed3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/build/prepare.cppm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ prepare_build(bool print_fingerprint,
939939
// For musl-gcc the toolchain is fully self-contained
940940
// (`<root>/x86_64-linux-musl/{include,lib}` is its own sysroot).
941941
// musl-gcc's `-dumpmachine` reports `x86_64-linux-musl`.
942-
bool isMuslTc = tc->targetTriple.find("-musl") != std::string::npos;
942+
bool isMuslTc = mcpp::toolchain::is_musl_target(*tc);
943943

944944
// A musl toolchain only really makes sense with static linkage —
945945
// dynamic-musl binaries depend on a system /lib/ld-musl-x86_64.so.1

0 commit comments

Comments
 (0)