diff --git a/toolchain/defs.bzl b/toolchain/defs.bzl index faf2a63..0986a14 100644 --- a/toolchain/defs.bzl +++ b/toolchain/defs.bzl @@ -104,7 +104,7 @@ def _target_linux_gnu(gocpu, zigcpu, glibc_version = ""): "libc/include/any-linux-any", "libc/include/{}-linux-gnu".format(zigcpu), "libc/include/{}-linux-any".format(zigcpu), - ], + ] + ["libc/include/x86-linux-any"] if zigcpu == "x86_64" else [], toplevel_include = ["glibc-hacks"] if fcntl_hack else [], compiler_extra_includes = ["glibc-hacks/glibchack-fcntl.h"] if fcntl_hack else [], linker_version_scripts = ["glibc-hacks/fcntl.map"] if fcntl_hack else [], @@ -127,7 +127,7 @@ def _target_linux_musl(gocpu, zigcpu): "libc/include/any-linux-any", "libc/include/{}-linux-musl".format(zigcpu), "libc/include/{}-linux-any".format(zigcpu), - ], + ] + ["libc/include/x86-linux-any"] if zigcpu == "x86_64" else [], linkopts = ["-s", "-w"], copts = DEFAULT_COPTS + ["-D_LIBCPP_HAS_MUSL_LIBC", "-D_LIBCPP_HAS_THREAD_API_PTHREAD"], bazel_target_cpu = "k8",