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) {...@@ -1295,6 +1295,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
1295 c_file->args.append("-include");1295 c_file->args.append("-include");
1296 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));1296 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
1297 c_file->args.append("-DMODULE_NAME=libc");1297 c_file->args.append("-DMODULE_NAME=libc");
1298 c_file->args.append("-Wno-nonportable-include-path");
1298 c_file->args.append("-include");1299 c_file->args.append("-include");
1299 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));1300 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
1300 c_file->args.append("-DTOP_NAMESPACE=glibc");1301 c_file->args.append("-DTOP_NAMESPACE=glibc");
...@@ -1321,6 +1322,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {...@@ -1321,6 +1322,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
1321 c_file->args.append("-include");1322 c_file->args.append("-include");
1322 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));1323 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
1323 c_file->args.append("-DMODULE_NAME=libc");1324 c_file->args.append("-DMODULE_NAME=libc");
1325 c_file->args.append("-Wno-nonportable-include-path");
1324 c_file->args.append("-include");1326 c_file->args.append("-include");
1325 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));1327 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
1326 c_file->args.append("-DPIC");1328 c_file->args.append("-DPIC");
...@@ -1377,6 +1379,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {...@@ -1377,6 +1379,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
1377 c_file->args.append("-include");1379 c_file->args.append("-include");
1378 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));1380 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
1379 c_file->args.append("-DMODULE_NAME=libc");1381 c_file->args.append("-DMODULE_NAME=libc");
1382 c_file->args.append("-Wno-nonportable-include-path");
1380 c_file->args.append("-include");1383 c_file->args.append("-include");
1381 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));1384 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
1382 c_file->args.append("-DPIC");1385 c_file->args.append("-DPIC");
...@@ -1420,6 +1423,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {...@@ -1420,6 +1423,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) {
1420 c_file->args.append("-include");1423 c_file->args.append("-include");
1421 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));1424 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h"));
1422 c_file->args.append("-DMODULE_NAME=libc");1425 c_file->args.append("-DMODULE_NAME=libc");
1426 c_file->args.append("-Wno-nonportable-include-path");
1423 c_file->args.append("-include");1427 c_file->args.append("-include");
1424 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));1428 c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h"));
1425 c_file->args.append("-DPIC");1429 c_file->args.append("-DPIC");