Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 1 | # Copyright 2021 The Pigweed Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | # use this file except in compliance with the License. You may obtain a copy of |
| 5 | # the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations under |
| 13 | # the License. |
| 14 | |
| 15 | # Required for new toolchain resolution API. |
Nathaniel Brough | 3c81320 | 2021-03-23 16:30:31 +0800 | [diff] [blame] | 16 | build --incompatible_enable_cc_toolchain_resolution |
| 17 | |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 18 | # Required for combined code coverage reports. |
Nathaniel Brough | 3c81320 | 2021-03-23 16:30:31 +0800 | [diff] [blame] | 19 | coverage --experimental_generate_llvm_lcov |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 20 | coverage --combined_report=lcov |
| 21 | |
| 22 | # Enforces consistent action environment variables. This is important to |
| 23 | # address Protobuf's rebuild sensitivity on changes to the environment |
| 24 | # variables. |
Nathaniel Brough | b6b90d0 | 2021-05-11 11:32:17 +0800 | [diff] [blame] | 25 | build --incompatible_strict_action_env |
| 26 | |
| 27 | # Define the --config=asan-libfuzzer configuration. |
| 28 | build:asan-libfuzzer \ |
| 29 | --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:libfuzzer |
| 30 | build:asan-libfuzzer \ |
| 31 | --@rules_fuzzing//fuzzing:cc_engine_instrumentation=libfuzzer |
| 32 | build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_sanitizer=asan |