commit 63d4e3ce1eefa8fe150c1cfddbac3cd6bd361862 (tree)
parent ceb2d44bfc71074abbe48b3b41a6c05ff39e7267
Author: Andrew Kelley <superjoe30@gmail.com>
Date: Sun, 29 Nov 2015 15:09:43 -0700
add missing panic for shared library output
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git 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) {