authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-22 16:24:49-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-09-22 18:15:30-04:00
logd6f7b573aacd924e199f6bb62c8e0c7e79138930
tree196537e88c9bdaaa31d67940f9e511d0419ad676
parentf14ba904d78a9edb6f7dcf89f70b9c0be346a0fb

silence nonportable include path warnings when building glibc on windows


1 files changed, 4 insertions(+), 0 deletions(-)

src/link.cpp+4
......@@ -1295,6 +1295,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
12951295 c_file->args.append("-include");
12961296 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
12971297 c_file->args.append("-DMODULE_NAME=libc");
1298 c_file->args.append("-Wno-nonportable-include-path");
12981299 c_file->args.append("-include");
12991300 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
13001301 c_file->args.append("-DTOP_NAMESPACE=glibc");
......@@ -1321,6 +1322,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
13211322 c_file->args.append("-include");
13221323 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
13231324 c_file->args.append("-DMODULE_NAME=libc");
1325 c_file->args.append("-Wno-nonportable-include-path");
13241326 c_file->args.append("-include");
13251327 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
13261328 c_file->args.append("-DPIC");
......@@ -1377,6 +1379,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
13771379 c_file->args.append("-include");
13781380 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
13791381 c_file->args.append("-DMODULE_NAME=libc");
1382 c_file->args.append("-Wno-nonportable-include-path");
13801383 c_file->args.append("-include");
13811384 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
13821385 c_file->args.append("-DPIC");
......@@ -1420,6 +1423,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
14201423 c_file->args.append("-include");
14211424 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
14221425 c_file->args.append("-DMODULE_NAME=libc");
1426 c_file->args.append("-Wno-nonportable-include-path");
14231427 c_file->args.append("-include");
14241428 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
14251429 c_file->args.append("-DPIC");