aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-03-12 17:32:32 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-03-12 17:32:32 -0400
commit62486c35a483d759b29fa5da235da66590bde6d7 (patch)
tree9325e41870f70db4d044345eaafd565a800adaf9 /src/codegen.cpp
parent5734b7a37a75b927ca31e52ad915d7de125993d9 (diff)
downloadzig-62486c35a483d759b29fa5da235da66590bde6d7.tar.gz
zig-62486c35a483d759b29fa5da235da66590bde6d7.zip
ability to build musl from source
bundles musl 1.1.21 See #514
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp11
1 files changed, 7 insertions, 4 deletions
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);
}
}