commit | 08936aecb96f2937c61bdedfebcf1c5a41a0786d | [log] [tgz] |
---|---|---|
author | Benedek Thaler <erenon2@gmail.com> | Thu Apr 01 03:33:34 2021 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Apr 01 03:34:30 2021 -0700 |
tree | 6690f3ce5b4259ea1088600b91a8eb00b1a4881e | |
parent | 47edc57806056f3c8764241ed41b8acc72bd2ebf [diff] |
Add external_include_paths C++ feature Projects with strict warnings level experience issues when they depend on third party libraries with less-strict warnings: The compiler will emit warnings for external sources. See #12009 for more. This change optionally silences those warnings, by changing -I flags to -isystem flags and by adding -isystem flags for each -iquote flag, in case of external dependencies, i.e: those targets that come from a non-main workspace. The new behavior can be enabled by --features=external_include_paths, otherwise there's no functional change. The default flag_group in unix_cc_toolchain_config will silence warnings coming from -I and -iquote dirs in case of GCC, and -I for Clang. Clang will still produce warnings for -iquote dirs, therefore the Clang specific --system-header-prefix is recommended instead. Closes #13107. PiperOrigin-RevId: 366220384
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md