From 63d4e3ce1eefa8fe150c1cfddbac3cd6bd361862 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 29 Nov 2015 15:09:43 -0700 Subject: add missing panic for shared library output --- src/codegen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 17af1e63ee..8f3c871968 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -1293,6 +1293,10 @@ void code_gen_link(CodeGen *g, const char *out_file) { 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"); if (g->is_native_target && ZIG_NATIVE_DYNAMIC_LINKER) { if (ZIG_NATIVE_DYNAMIC_LINKER[0] != 0) { -- cgit v1.2.3