From 83d9d0a5e4306bfcfdfd898292f09119df90453a Mon Sep 17 00:00:00 2001 From: James Fish Date: Mon, 27 Sep 2021 13:07:11 -0700 Subject: [PATCH] Add strip filegroups to support strip inside sandbox --- toolchain/BUILD.llvm_repo | 5 +++++ toolchain/internal/configure.bzl | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/toolchain/BUILD.llvm_repo b/toolchain/BUILD.llvm_repo index 7db02957..99207052 100644 --- a/toolchain/BUILD.llvm_repo +++ b/toolchain/BUILD.llvm_repo @@ -119,3 +119,8 @@ filegroup( name = "readelf", srcs = ["bin/llvm-readelf"], ) + +filegroup( + name = "strip", + srcs = ["bin/llvm-strip"], +) diff --git a/toolchain/internal/configure.bzl b/toolchain/internal/configure.bzl index 10f4857d..052da885 100644 --- a/toolchain/internal/configure.bzl +++ b/toolchain/internal/configure.bzl @@ -323,6 +323,7 @@ filegroup(name = "compiler-files-{suffix}", srcs = [":compiler-components-{suffi filegroup(name = "dwp-files-{suffix}", srcs = ["{toolchain_root}:dwp"{extra_files_str}]) filegroup(name = "linker-files-{suffix}", srcs = [":linker-components-{suffix}"{extra_files_str}]) filegroup(name = "objcopy-files-{suffix}", srcs = ["{toolchain_root}:objcopy"{extra_files_str}]) +filegroup(name = "strip-files-{suffix}", srcs = ["{toolchain_root}:strip"{extra_files_str}]) cc_toolchain( name = "cc-clang-{suffix}", @@ -333,7 +334,7 @@ cc_toolchain( dwp_files = "dwp-files-{suffix}", linker_files = "linker-files-{suffix}", objcopy_files = "objcopy-files-{suffix}", - strip_files = ":empty", + strip_files = "strip-files-{suffix}", toolchain_config = "local-{suffix}", ) """