bazelbuild / rules_cc

C++ Rules for Bazel
https://bazel.build
Apache License 2.0
186 stars 93 forks source link

Implement a repository rule for importing system libraries #79

Closed agluszak closed 4 years ago

agluszak commented 4 years ago

system_library is a repository rule for safely depending on system-provided libraries on Linux. It can be used with remote caching and remote execution. Under the hood it uses gcc/clang for finding the library files and headers and symlinks them into the build directory. Symlinking allows Bazel to take these files into account when it calculates a checksum of the project. This prevents cache poisoning from happening.

There are a couple of things that still need polishing: