mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
add missing panic for shared library output
This commit is contained in:
parent
ceb2d44bfc
commit
63d4e3ce1e
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue