From 62486c35a483d759b29fa5da235da66590bde6d7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 12 Mar 2019 17:32:32 -0400 Subject: ability to build musl from source bundles musl 1.1.21 See #514 --- src/codegen.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 6ee41fff31..b1b9e46036 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -8014,11 +8014,14 @@ static void detect_libc(CodeGen *g) { } else if ((g->out_type == OutTypeExe || (g->out_type == OutTypeLib && !g->is_static)) && !target_is_darwin(g->zig_target)) { - // Currently darwin is the only platform that we can link libc on when not compiling natively, - // without a cross compiling libc kit. fprintf(stderr, - "Cannot link against libc for non-native OS '%s' without providing a libc installation file.\n" - "See `zig libc --help` for more details.\n", target_os_name(g->zig_target->os)); + "Zig is unable to provide a libc for the chosen target '%s-%s-%s'.\n" + "The target is non-native, so Zig also cannot use the native libc installation.\n" + "Choose a target which has a libc available, or provide a libc installation text file.\n" + "See `zig libc --help` for more details.\n", + target_arch_name(g->zig_target->arch), + target_os_name(g->zig_target->os), + target_abi_name(g->zig_target->abi)); exit(1); } } -- cgit v1.2.3