diff options
author | Yifan Hong <elsk@google.com> | 2024-02-08 15:56:14 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2024-02-09 15:40:08 -0800 |
commit | aea623839d924ad9457443695cc0db1bb898f002 (patch) | |
tree | 50ddffb197a62adb1f856a346a815d0875f93127 | |
parent | ce42303468918c52c468405e3db8f0c8e49807c2 (diff) | |
download | x86_64-linux-glibc2.17-4.8-aea623839d924ad9457443695cc0db1bb898f002.tar.gz |
kleaf: Add declarations to support building C++ host binaries.emu-34-3-release
This adds around 100 files to the toolchain.
Test: TH
Bug: 324206397
Change-Id: I00790095c0c33c499e157ac5d8e0dfb3590d47a9
-rw-r--r-- | BUILD.bazel | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/BUILD.bazel b/BUILD.bazel index 697b5a9..59d8811 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -11,3 +11,39 @@ filegroup( srcs = glob(["**/**"]), visibility = ["//prebuilts/clang/host/linux-x86:__pkg__"], ) + +# Kleaf stuff + +# Value for -B. These are directories! +filegroup( + name = "bin_dirs", + srcs = [ + "lib/gcc/x86_64-linux/4.8.3", + "x86_64-linux/lib64", + ], + visibility = ["@kleaf_clang_toolchain//:__subpackages__"], +) + +# Files for :bin_dirs +filegroup( + name = "bin_files", + srcs = glob([ + "x86_64-linux/lib64/**", + "lib/gcc/x86_64-linux/4.8.3/**", + ]), + visibility = ["@kleaf_clang_toolchain//:__subpackages__"], +) + +# Value for -L. These are directories! +alias( + name = "lib_files", + actual = ":bin_files", + visibility = ["@kleaf_clang_toolchain//:__subpackages__"], +) + +# Files for :lib_dirs +alias( + name = "lib_dirs", + actual = ":bin_dirs", + visibility = ["@kleaf_clang_toolchain//:__subpackages__"], +) |