Skip to content
Permalink
Browse files
fixtoolchain (#3563)
  • Loading branch information
huijunwu committed Jul 11, 2020
1 parent 1c62485 commit b760eabc5a4c671bce0fa0f8164c047605a54787
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
@@ -1,4 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_toolchain")
load(":cc_toolchain_config.bzl", "cc_toolchain_config")

licenses(["restricted"])

@@ -27,32 +28,30 @@ filegroup(
],
)

cc_toolchain_config(name = "k8_toolchain_config")

cc_toolchain(
name = "cc-compiler-local",
all_files = ":empty",
compiler_files = ":empty",
cpu = "local",
dwp_files = ":empty",
dynamic_runtime_libs = [":empty"],
linker_files = ":empty",
objcopy_files = ":empty",
static_runtime_libs = [":empty"],
strip_files = ":empty",
supports_param_files = 0,
toolchain_config = ":k8_toolchain_config",
)

cc_toolchain(
name = "cc-compiler-k8",
all_files = ":empty",
compiler_files = ":empty",
cpu = "local",
dwp_files = ":empty",
dynamic_runtime_libs = [":empty"],
linker_files = ":empty",
objcopy_files = ":empty",
static_runtime_libs = [":empty"],
strip_files = ":empty",
supports_param_files = 0,
toolchain_config = ":k8_toolchain_config",
)

filegroup(
@@ -0,0 +1,18 @@
def _impl(ctx):
return cc_common.create_cc_toolchain_config_info(
ctx = ctx,
toolchain_identifier = "k8-toolchain",
host_system_name = "local",
target_system_name = "local",
target_cpu = "k8",
target_libc = "unknown",
compiler = "clang",
abi_version = "unknown",
abi_libc_version = "unknown",
)

cc_toolchain_config = rule(
implementation = _impl,
attrs = {},
provides = [CcToolchainConfigInfo],
)

0 comments on commit b760eab

Please sign in to comment.