aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-07-10 20:20:53 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-07-10 20:20:53 -0400
commite0670557b4e77a43a79f466fb755b03dd648a948 (patch)
tree85d04a59b37dc1abe3289e0847bf0640985f001f /src/link.cpp
parent3714d524c3267e21979ee4c288528ae3d923542c (diff)
downloadzig-e0670557b4e77a43a79f466fb755b03dd648a948.tar.gz
zig-e0670557b4e77a43a79f466fb755b03dd648a948.zip
fix windows not able to build mingw
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link.cpp b/src/link.cpp
index 83078d2c71..8cc6f629fc 100644
--- a/src/link.cpp
+++ b/src/link.cpp
@@ -1222,8 +1222,8 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
c_file->args.append("-isystem");
c_file->args.append(path_from_libc(parent, "include" OS_SEP "any-windows-any"));
- c_file->args.append("-I");
- c_file->args.append(path_from_libc(parent, "mingw" OS_SEP "include" OS_SEP));
+ c_file->args.append("-isystem");
+ c_file->args.append(path_from_libc(parent, "mingw" OS_SEP "include"));
c_file->args.append("-std=gnu99");
c_file->args.append("-D_CRTBLD");