blob: ffef017d4bcb6a5c9a1f51e1dd04e4fccf01099e [file] [log] [blame]
Alexei Frolov844ff0f2020-05-06 12:15:29 -07001# Copyright 2019 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(aarongreen): Do some minimal parsing on the environment variables to
16# identify conflicting configs.
17oss_fuzz_added_configs = []
18oss_fuzz_removed_configs = []
19oss_fuzz_extra_cflags_c = string_split(getenv("CFLAGS"))
20oss_fuzz_extra_cflags_cc = string_split(getenv("CXXFLAGS"))
21oss_fuzz_extra_ldflags = string_split(getenv("LDFLAGS"))
22
23# TODO(pwbug/184): OSS-Fuzz sets -stdlib=libc++, but pw_minimal_cpp_stdlib
24# sets -nostdinc++. Find a more flexible mechanism to achieve this and
25# similar needs (like removing -fno-rtti fro UBSan).
26oss_fuzz_extra_cflags_cc += [ "-Wno-unused-command-line-argument" ]