aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-04-29 00:40:04 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-04-29 00:40:04 -0400
commitbf8e419d2b7853f5cb5aba4dcba45ae28a3840aa (patch)
treedca5260dd4a11773fec68dd5973201be6f61b725 /src/codegen.cpp
parentabf90eaa674782e092e49bb23c4c7da0f581f604 (diff)
downloadzig-bf8e419d2b7853f5cb5aba4dcba45ae28a3840aa.tar.gz
zig-bf8e419d2b7853f5cb5aba4dcba45ae28a3840aa.zip
linux uses pthreads when linking against libc
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index 9f064d5f19..2d8c385f44 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -145,7 +145,6 @@ CodeGen *codegen_create(Buf *root_src_path, const ZigTarget *target, OutType out
{
g->libc_link_lib = create_link_lib(buf_create_from_str("c"));
g->link_libs_list.append(g->libc_link_lib);
- g->pthread_link_lib = create_link_lib(buf_create_from_str("pthread"));
}
return g;
@@ -6374,7 +6373,6 @@ static void define_builtin_compile_vars(CodeGen *g) {
buf_appendf(contents, "pub const object_format = ObjectFormat.%s;\n", cur_obj_fmt);
buf_appendf(contents, "pub const mode = %s;\n", build_mode_to_str(g->build_mode));
buf_appendf(contents, "pub const link_libc = %s;\n", bool_to_str(g->libc_link_lib != nullptr));
- buf_appendf(contents, "pub const link_pthread = %s;\n", bool_to_str(g->pthread_link_lib != nullptr));
buf_appendf(contents, "pub const have_error_return_tracing = %s;\n", bool_to_str(g->have_err_ret_tracing));
buf_appendf(contents, "pub const __zig_test_fn_slice = {}; // overwritten later\n");