add missing panic for shared library output

This commit is contained in:
Andrew Kelley 2015-11-29 15:09:43 -07:00
parent ceb2d44bfc
commit 63d4e3ce1e

View file

@ -1293,6 +1293,10 @@ void code_gen_link(CodeGen *g, const char *out_file) {
args.append("-static"); args.append("-static");
} }
if (g->out_type == OutTypeLib) {
zig_panic("TODO add ld commands for shared library");
}
char *ZIG_NATIVE_DYNAMIC_LINKER = getenv("ZIG_NATIVE_DYNAMIC_LINKER"); char *ZIG_NATIVE_DYNAMIC_LINKER = getenv("ZIG_NATIVE_DYNAMIC_LINKER");
if (g->is_native_target && ZIG_NATIVE_DYNAMIC_LINKER) { if (g->is_native_target && ZIG_NATIVE_DYNAMIC_LINKER) {
if (ZIG_NATIVE_DYNAMIC_LINKER[0] != 0) { if (ZIG_NATIVE_DYNAMIC_LINKER[0] != 0) {