zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit d6f7b573aacd924e199f6bb62c8e0c7e79138930 (tree)
parent f14ba904d78a9edb6f7dcf89f70b9c0be346a0fb
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Sun, 22 Sep 2019 16:24:49 -0400

silence nonportable include path warnings when building glibc on windows

Diffstat:
Msrc/link.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/link.cpp b/src/link.cpp @@ -1295,6 +1295,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) { c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h")); c_file->args.append("-DMODULE_NAME=libc"); + c_file->args.append("-Wno-nonportable-include-path"); c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h")); c_file->args.append("-DTOP_NAMESPACE=glibc"); @@ -1321,6 +1322,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) { c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h")); c_file->args.append("-DMODULE_NAME=libc"); + c_file->args.append("-Wno-nonportable-include-path"); c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h")); c_file->args.append("-DPIC"); @@ -1377,6 +1379,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) { c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h")); c_file->args.append("-DMODULE_NAME=libc"); + c_file->args.append("-Wno-nonportable-include-path"); c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h")); c_file->args.append("-DPIC"); @@ -1420,6 +1423,7 @@ static const char *get_libc_crt_file(CodeGen *parent, const char *file) { c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-modules.h")); c_file->args.append("-DMODULE_NAME=libc"); + c_file->args.append("-Wno-nonportable-include-path"); c_file->args.append("-include"); c_file->args.append(path_from_libc(parent, "glibc" OS_SEP "include" OS_SEP "libc-symbols.h")); c_file->args.append("-DPIC");