diff options
| author | dimenus <ryan.saunderson88@gmail.com> | 2017-11-13 16:37:46 -0600 |
|---|---|---|
| committer | dimenus <ryan.saunderson88@gmail.com> | 2017-11-13 16:37:46 -0600 |
| commit | 98e3c7911cbbd6dc0d0e45775e424e448b8c651a (patch) | |
| tree | 11af22138bf8bcf5031bfaf46202ba688999d0f7 /src/link.cpp | |
| parent | a890380b6aaf68f97a29f2224bcb06295c292596 (diff) | |
| download | zig-98e3c7911cbbd6dc0d0e45775e424e448b8c651a.tar.gz zig-98e3c7911cbbd6dc0d0e45775e424e448b8c651a.zip | |
Fixed duplicate decl detection for typedefs/enums
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/link.cpp b/src/link.cpp index 1a166a444f..bc84b27b89 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -485,8 +485,13 @@ static void construct_linker_job_coff(LinkJob *lj) { continue; } if (link_lib->provided_explicitly) { - Buf *arg = buf_sprintf("-l%s", buf_ptr(link_lib->name)); - lj->args.append(buf_ptr(arg)); + if (lj->codegen->zig_target.env_type == ZigLLVM_GNU) { + Buf *arg = buf_sprintf("-l%s", buf_ptr(link_lib->name)); + lj->args.append(buf_ptr(arg)); + } + else { + lj->args.append(buf_ptr(link_lib->name)); + } } else { buf_resize(def_contents, 0); buf_appendf(def_contents, "LIBRARY %s\nEXPORTS\n", buf_ptr(link_lib->name)); |
