xref: /aosp_15_r20/external/pigweed/pw_fuzzer/libfuzzer.bazelrc (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1# Copyright 2024 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# TODO(b/347696410): Currently, building with `--config=libfuzzer` causes link
16# errors for `pw_target_runner`.
17
18build:libfuzzer \
19    --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:libfuzzer
20build:libfuzzer \
21    --@rules_fuzzing//fuzzing:cc_engine_instrumentation=libfuzzer
22build:libfuzzer --@rules_fuzzing//fuzzing:cc_engine_sanitizer=asan
23build:libfuzzer \
24    --@pigweed//pw_unit_test:backend=@pigweed//pw_unit_test:googletest
25build:libfuzzer --platforms=@pigweed//pw_unit_test:googletest_platform
26
27test:libfuzzer --test_output=streamed
28
29