diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-06-16 17:01:23 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-06-16 17:01:23 -0400 |
| commit | 48de57d8248d9203b44d28d7749b5d7c1a00deba (patch) | |
| tree | 149fb86d959501ecb2e5e2aac7f688265f729ba6 /src/link.cpp | |
| parent | b3a3e2094e8b88e40eecf65d29f39af10442bde4 (diff) | |
| download | zig-48de57d8248d9203b44d28d7749b5d7c1a00deba.tar.gz zig-48de57d8248d9203b44d28d7749b5d7c1a00deba.zip | |
add basic std lib code for loading dynamic libraries
this is going to only work for very basic libraries;
I plan to slowly add more features over time to support more
complicated libraries
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link.cpp b/src/link.cpp index d2925cb5a8..a4631b1daf 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -208,7 +208,7 @@ static Buf *get_dynamic_linker_path(CodeGen *g) { static void construct_linker_job_elf(LinkJob *lj) { CodeGen *g = lj->codegen; - if (lj->link_in_crt) { + if (g->libc_link_lib != nullptr) { find_libc_lib_path(g); } @@ -432,7 +432,7 @@ static bool zig_lld_link(ZigLLVM_ObjectFormatType oformat, const char **args, si static void construct_linker_job_coff(LinkJob *lj) { CodeGen *g = lj->codegen; - if (lj->link_in_crt) { + if (g->libc_link_lib != nullptr) { find_libc_lib_path(g); } |
