1# Copyright 2018 Google LLC 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://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, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# cc_* rules should include this list in copts. If additional cc_*-wide 16# customization appears, we might want to switch to macros. 17 18"""This is the definition site for things we want to keep consistent, like copts.""" 19 20FCP_COPTS = [ 21] 22 23FCP_BAREMETAL_COPTS = FCP_COPTS + [ 24 "-DFCP_BAREMETAL", 25 "-nostdlib", 26 "-fno-exceptions", 27 "-ffreestanding", 28 "-Wno-unused-parameter", 29] 30 31FCP_NANOLIBC_COPTS = FCP_BAREMETAL_COPTS + [ 32 "-DFCP_NANOLIBC", 33] 34