diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-03-31 11:26:02 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-03-31 11:26:02 -0400 |
| commit | 8f962a957a3645342fba8219cf8f33d0ac42e16d (patch) | |
| tree | be4982feb1cbc0d334d5684ed49df76e602a1891 /src/link.cpp | |
| parent | c3724ec506a9e3a4b23a145a733050c17321da9d (diff) | |
| download | zig-8f962a957a3645342fba8219cf8f33d0ac42e16d.tar.gz zig-8f962a957a3645342fba8219cf8f33d0ac42e16d.zip | |
fix regressions on windows
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/link.cpp b/src/link.cpp index 57fa59b675..c089d69611 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -455,7 +455,9 @@ static void construct_linker_job_coff(LinkJob *lj) { lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", buf_ptr(g->kernel32_lib_dir)))); lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", buf_ptr(g->libc_lib_dir)))); - lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", buf_ptr(g->libc_static_lib_dir)))); + if (g->libc_static_lib_dir != nullptr) { + lj->args.append(buf_ptr(buf_sprintf("-LIBPATH:%s", buf_ptr(g->libc_static_lib_dir)))); + } } if (lj->link_in_crt) { |
