diff options
author | Yifan Hong <elsk@google.com> | 2024-02-08 12:52:01 -0800 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2024-02-15 14:26:35 -0800 |
commit | fac1e22088a8516d334399c8d2d6b5c1208edcdf (patch) | |
tree | 05afe42d1550295e737bc228c4a5441909968736 /kleaf/clang_config.bzl | |
parent | bf1b3535c6ce710be036308e07d740adf1b5dea7 (diff) | |
download | linux-x86-fac1e22088a8516d334399c8d2d6b5c1208edcdf.tar.gz |
kleaf: Add -B / -L to host cc_* rules.
Adds libdir to find libraries from prebuilts/gcc. This
resolves error for the linker not being able to find
e.g. -lgcc etc.
This is not applied to Kbuild, because Kbuild uses
--rtlib=compiler-rt instead.
Bug: 324206397
Change-Id: I697c10818cf821c3b3a8fdb47859b9a8868d787c
Merged-In: I697c10818cf821c3b3a8fdb47859b9a8868d787c
Diffstat (limited to 'kleaf/clang_config.bzl')
-rw-r--r-- | kleaf/clang_config.bzl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kleaf/clang_config.bzl b/kleaf/clang_config.bzl index 5d2ee4b92..134060589 100644 --- a/kleaf/clang_config.bzl +++ b/kleaf/clang_config.bzl @@ -61,6 +61,8 @@ clang_config = rule( "linux", ]), "sysroot": attr.string(mandatory = True), + "bin_dirs": attr.label_list(), + "lib_dirs": attr.label_list(), "target": attr.string(), "toolchain_identifier": attr.string(), "clang_version": attr.string(), |