mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 05:41:06 +00:00
dc4510a52a
Cleans up build files related to fuzzers. 1. Sanitizers (address, memory, undefined, coverage) configs in the "pw_fuzzer" template are no longer necessary as they are already applied to the toolchain as defaults. These instrumentations apply to both the fuzzer target and its dependencies (which is what we want for deep fuzzing). 2. Removes "oss_fuzz_added_configs" and "oss_fuzz_removed_configs" as they are unused and breaking OSS-FUZZ integration. Test: pw_fuzzer/examples/build_and_run_toy_fuzzer.sh Change-Id: I50e70a1b91cf4d5df2d7b385c6ffec53d3416231 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30861 Reviewed-by: Aaron Green <aarongreen@google.com> Commit-Queue: Ali Zhang <alizhang@google.com> Pigweed-Auto-Submit: Ali Zhang <alizhang@google.com>
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
# Copyright 2019 The Pigweed Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
# use this file except in compliance with the License. You may obtain a copy of
|
|
# the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations under
|
|
# the License.
|
|
|
|
# TODO(aarongreen): Do some minimal parsing on the environment variables to
|
|
# identify conflicting configs.
|
|
oss_fuzz_extra_cflags_c = string_split(getenv("CFLAGS"))
|
|
oss_fuzz_extra_cflags_cc = string_split(getenv("CXXFLAGS"))
|
|
oss_fuzz_extra_ldflags = string_split(getenv("LDFLAGS"))
|
|
|
|
# TODO(pwbug/184): OSS-Fuzz sets -stdlib=libc++, but pw_minimal_cpp_stdlib
|
|
# sets -nostdinc++. Find a more flexible mechanism to achieve this and
|
|
# similar needs (like removing -fno-rtti fro UBSan).
|
|
oss_fuzz_extra_cflags_cc += [ "-Wno-unused-command-line-argument" ]
|