Skip to content

Latest commit

 

History

History
 
 

examples

Examples

  • cc_asan_test: A cc_test that is always instrumented and run with AddressSanitizer, including its dependencies.
  • cc_asan_test_with_reset: An advanced variant of cc_asan_test that uses resettable() and reset_on_attrs() to reduce build time by selectively disabling instrumentation for test data and certain dependencies.
  • cc_define_test: A cc_test that propagates a define to all its transitive dependencies. This example shows that with_cfg.bzl transparently supports runfiles lookups, selects and other features of the underlying rule.
  • java_21_library: A java_library that is always built targeting Java 21, even if the default Java configuration doesn't support it.
  • java_21_library_with_reset: An advanced variant of java_21_library that uses resettable() to build a legacy dependency of the library with Java 7.
  • opt_filegroup: Build all files in a filegroup with --compilation_mode set to opt, for example to speed up an integration test using them.