diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/BUILD.bazel b/cc/toolchains/llvm-mingw/x86_64-windows/BUILD.bazel similarity index 72% rename from cc/toolchains/llvm-mingw/x86_64-linux/BUILD.bazel rename to cc/toolchains/llvm-mingw/x86_64-windows/BUILD.bazel index 3d0a5c0..198840e 100644 --- a/cc/toolchains/llvm-mingw/x86_64-linux/BUILD.bazel +++ b/cc/toolchains/llvm-mingw/x86_64-windows/BUILD.bazel @@ -11,7 +11,7 @@ package(default_visibility = ["//visibility:public"]) load("//cc/toolchains/llvm:cc_toolchain_config.bzl", "cc_toolchain_config") -load("//cc/toolchains/llvm:target_triplets.bzl", "X86_64_LINUX") +load("//cc/toolchains/llvm:target_triplets.bzl", "X86_64_WINDOWS") filegroup( name = "wrappers", @@ -25,7 +25,7 @@ filegroup( name = "ar_files", srcs = [ ":wrappers", - "@x86_64-linux-llvm-mingw//:ar", + "@x86_64-windows-llvm-mingw//:ar", ], ) @@ -33,7 +33,7 @@ filegroup( name = "as_files", srcs = [ ":wrappers", - "@x86_64-linux-llvm-mingw//:as", + "@x86_64-windows-llvm-mingw//:as", ], ) @@ -41,8 +41,8 @@ filegroup( name = "compiler_files", srcs = [ ":wrappers", - "@x86_64-linux-llvm-mingw//:clang", - "@x86_64-linux-llvm-mingw//:include", + "@x86_64-windows-llvm-mingw//:clang", + "@x86_64-windows-llvm-mingw//:include", ], ) @@ -50,7 +50,7 @@ filegroup( name = "dwp_files", srcs = [ ":wrappers", - "@x86_64-linux-llvm-mingw//:dwp", + "@x86_64-windows-llvm-mingw//:dwp", ], ) @@ -58,10 +58,10 @@ filegroup( name = "linker_files", srcs = [ ":wrappers", - "@x86_64-linux-llvm-mingw//:ar", - "@x86_64-linux-llvm-mingw//:clang", - "@x86_64-linux-llvm-mingw//:ld", - "@x86_64-linux-llvm-mingw//:lib", + "@x86_64-windows-llvm-mingw//:ar", + "@x86_64-windows-llvm-mingw//:clang", + "@x86_64-windows-llvm-mingw//:ld", + "@x86_64-windows-llvm-mingw//:lib", ], ) @@ -69,7 +69,7 @@ filegroup( name = "objcopy_files", srcs = [ ":wrappers", - "@x86_64-linux-llvm-mingw//:objcopy", + "@x86_64-windows-llvm-mingw//:objcopy", ], ) @@ -77,7 +77,7 @@ filegroup( name = "strip_files", srcs = [ ":wrappers", - "@x86_64-linux-llvm-mingw//:strip", + "@x86_64-windows-llvm-mingw//:strip", ], ) @@ -86,12 +86,12 @@ filegroup( srcs = [ "linker_files", ":compiler_files", - "@x86_64-linux-llvm-mingw//:bin", + "@x86_64-windows-llvm-mingw//:bin", ] ) cc_toolchain_config( - name = "local-x86_64-linux", + name = "local-x86_64-windows", abi_libc_version = "glibc_unknown", abi_version = "clang", compiler = "clang", @@ -100,10 +100,10 @@ cc_toolchain_config( "/usr/include", "/usr/local/include", ], - host_system_name = X86_64_LINUX, + host_system_name = X86_64_WINDOWS, target_cpu = "k8", target_libc = "glibc_unknown", - target_system_name = X86_64_LINUX, + target_system_name = X86_64_WINDOWS, tool_paths = { "ar": "wrappers/llvm-ar", "cpp": "wrappers/clang-cpp", @@ -117,12 +117,12 @@ cc_toolchain_config( "objdump": "wrappers/llvm-objdump", "strip": "wrappers/llvm-strip", }, - toolchain_identifier = "clang-x86_64-linux", - toolchain_path_prefix = "external/x86_64-linux-llvm", + toolchain_identifier = "clang-x86_64-windows", + toolchain_path_prefix = "external/x86_64-windows-llvm", ) cc_toolchain( - name = "cc-clang-x86_64-linux", + name = "cc-clang-x86_64-windows", all_files = ":all_files", ar_files = ":ar_files", as_files = ":as_files", @@ -131,14 +131,14 @@ cc_toolchain( linker_files = ":linker_files", objcopy_files = ":objcopy_files", strip_files = ":strip_files", - toolchain_config = ":local-x86_64-linux", + toolchain_config = ":local-x86_64-windows", ) toolchain( - name = "cc-toolchain-x86_64-linux", + name = "cc-toolchain-x86_64-windows", exec_compatible_with = [ "@platforms//cpu:x86_64", - "@platforms//os:linux", + "@platforms//os:windows", ], target_compatible_with = [ "@platforms//cpu:x86_64", @@ -146,7 +146,7 @@ toolchain( "//cc/constraints:llvm_toolchain", ], target_settings = None, - toolchain = ":cc-clang-x86_64-linux", + toolchain = ":cc-clang-x86_64-windows", toolchain_type = "@bazel_tools//tools/cpp:toolchain_type", ) diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/clang b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/clang similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/clang rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/clang diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/clang-cpp b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/clang-cpp similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/clang-cpp rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/clang-cpp diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/ld.lld b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/ld.lld similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/ld.lld rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/ld.lld diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-ar b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-ar similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-ar rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-ar diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-cov b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-cov similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-cov rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-cov diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-nm b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-nm similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-nm rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-nm diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-objcopy b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-objcopy similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-objcopy rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-objcopy diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-objdump b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-objdump similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-objdump rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-objdump diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-profdata b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-profdata similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-profdata rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-profdata diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-strip b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-strip similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/llvm-strip rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/llvm-strip diff --git a/cc/toolchains/llvm-mingw/x86_64-linux/wrappers/wrapper b/cc/toolchains/llvm-mingw/x86_64-windows/wrappers/wrapper similarity index 100% rename from cc/toolchains/llvm-mingw/x86_64-linux/wrappers/wrapper rename to cc/toolchains/llvm-mingw/x86_64-windows/wrappers/wrapper