Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 1 | # 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. |
Alexei Frolov | 844ff0f | 2020-05-06 12:15:29 -0700 | [diff] [blame] | 17 | oss_fuzz_extra_cflags_c = string_split(getenv("CFLAGS")) |
| 18 | oss_fuzz_extra_cflags_cc = string_split(getenv("CXXFLAGS")) |
| 19 | oss_fuzz_extra_ldflags = string_split(getenv("LDFLAGS")) |
| 20 | |
| 21 | # TODO(pwbug/184): OSS-Fuzz sets -stdlib=libc++, but pw_minimal_cpp_stdlib |
| 22 | # sets -nostdinc++. Find a more flexible mechanism to achieve this and |
| 23 | # similar needs (like removing -fno-rtti fro UBSan). |
| 24 | oss_fuzz_extra_cflags_cc += [ "-Wno-unused-command-line-argument" ] |