mirror of
https://github.com/bazelbuild/rules_cc
synced 2024-11-27 20:43:26 +00:00
608c7b605f
The cc_shared_library_permissions mechanism was introduced to add control over which cc_shared_libraries can export a given cc_library. If the repo is big enough, the owner of a cc_library might want to prevent someone else in a different package making their library part of the ABI of a public shared library because that makes it harder to change the cc_library. This does not apply accross repositories because a dependant repository can overwrite anything from a repository dependency anyway. However, it is becoming more apparent than even though this mechanism should exist, it should not be enabled by default since most people don't need it. To enable it pass the flag --//examples:enable_permissions_check=True. RELNOTES:none PiperOrigin-RevId: 363171677 Change-Id: I8afb3294806bb3053ee1279c6e9c5355089bccbb
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
---
|
|
x_defaults:
|
|
# YAML has a feature for "repeated nodes", BazelCI is fine with extra nodes
|
|
# it doesn't know about; so that is used to avoid repeating common subparts.
|
|
common: &common
|
|
# We have to list every package because even with exclusion notation -//foo
|
|
# Bazel will load the excluded package and it will be an error because at
|
|
# release Bazel the cc_libraries do not have all the attributes.
|
|
build_targets:
|
|
- "//:all"
|
|
- "//cc:all"
|
|
- "//cc/private/rules_impl:all"
|
|
- "//cc/private/toolchain:all"
|
|
- "//distro:all"
|
|
- "//examples:all"
|
|
- "//examples/my_c_archive:all"
|
|
- "//examples/my_c_compile:all"
|
|
- "//examples/write_cc_toolchain_cpu:all"
|
|
- "//tools/migration:all"
|
|
- "//tools/runfiles:all"
|
|
test_flags:
|
|
- "--test_timeout=120"
|
|
test_targets:
|
|
- "//:all"
|
|
- "//cc:all"
|
|
- "//cc/private/rules_impl:all"
|
|
- "//cc/private/toolchain:all"
|
|
- "//distro:all"
|
|
- "//examples:all"
|
|
- "//examples/my_c_archive:all"
|
|
- "//examples/my_c_compile:all"
|
|
- "//examples/write_cc_toolchain_cpu:all"
|
|
- "//tools/migration:all"
|
|
- "//tools/runfiles:all"
|
|
|
|
buildifier:
|
|
version: latest
|
|
warnings: "all"
|
|
|
|
tasks:
|
|
ubuntu1604:
|
|
<<: *common
|
|
ubuntu1804:
|
|
<<: *common
|
|
macos:
|
|
<<: *common
|
|
windows:
|
|
<<: *common
|
|
examples:
|
|
platform: ubuntu1804
|
|
bazel: last_green
|
|
build_targets:
|
|
- "//examples/test_cc_shared_library/..."
|
|
- "//examples/test_cc_shared_library/diamond_inheritance/..."
|
|
build_flags:
|
|
- "--experimental_cc_shared_library"
|
|
- "--//examples:incompatible_link_once=True"
|
|
- "--//examples:enable_permissions_check=True"
|
|
test_flags:
|
|
- "--test_timeout=120"
|
|
- "--experimental_cc_shared_library"
|
|
- "--//examples:incompatible_link_once=True"
|
|
- "--//examples:enable_permissions_check=True"
|
|
test_targets:
|
|
- "//examples/test_cc_shared_library/..."
|
|
- "//examples/test_cc_shared_library/diamond_inheritance/..."
|