Skip to content

Commit

Permalink
Add strip filegroups to support strip inside sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
fishcakez authored and rrbutani committed Sep 28, 2021
1 parent c51e0a1 commit 83d9d0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions toolchain/BUILD.llvm_repo
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,8 @@ filegroup(
name = "readelf",
srcs = ["bin/llvm-readelf"],
)

filegroup(
name = "strip",
srcs = ["bin/llvm-strip"],
)
3 changes: 2 additions & 1 deletion toolchain/internal/configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand All @@ -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}",
)
"""
Expand Down

0 comments on commit 83d9d0a

Please sign in to comment.