rules_foreign_cc VS bazel-compilation-database

Compare rules_foreign_cc vs bazel-compilation-database and see what are their differences.

rules_foreign_cc

Build rules for interfacing with "foreign" (non-Bazel) build systems (CMake, configure-make, GNU Make, boost, ninja, Meson) (by bazelbuild)

bazel-compilation-database

Tool to generate compile_commands.json from the Bazel build system (by grailbio)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
rules_foreign_cc bazel-compilation-database
3 2
638 445
0.9% -
8.1 3.1
7 days ago about 1 month ago
Starlark Starlark
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

rules_foreign_cc

Posts with mentions or reviews of rules_foreign_cc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-07-09.

bazel-compilation-database

Posts with mentions or reviews of bazel-compilation-database. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-02-14.
  • How to Use C++20 Modules with Bazel
    5 projects | /r/cpp | 14 Feb 2022
    You might look at https://github.com/grailbio/bazel-compilation-database
  • C++ IDE support
    1 project | /r/bazel | 15 Mar 2021
    How do you develop your C++ code? I have made a quick research, and results are pretty poor. It seems that only the CLion is fully supported. I have found that script for compilation_database generation grailbio/bazel-compilation-database, but it must be ran manually, and besides code indexing I miss many of the CLion features like smart BUILD/*.bzl files editing and debugging

What are some alternatives?

When comparing rules_foreign_cc and bazel-compilation-database you can also consider the following projects:

examples - Examples for Bazel

bazel-compile-commands-extractor - Goal: Enable awesome tooling for Bazel users of the C language family.

distroless - 🥑 Language focused docker images, minus the operating system.

rules_cc_module - Rules for using C++20 modules with bazel

rules_docker - Rules for building and handling Docker images with Bazel

bazel-central-registry - The central registry of Bazel modules for the Bzlmod external dependency system.

cpp20-module-example

bazel_conan_pkg_config

rules_nodejs - NodeJS toolchain for Bazel.

bazel_pkg_config - Bazel rules for pkg-config tools.