• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14ABSEIL_DIR = get_path_info("../..", "abspath")
15
16ABSL_DEFAULT_COPTS = [
17  "-Wall",
18  "-Wextra",
19  "-Weverything",
20  "-Wno-c++98-compat-pedantic",
21  "-Wno-conversion",
22  "-Wno-covered-switch-default",
23  "-Wno-deprecated",
24  "-Wno-disabled-macro-expansion",
25  "-Wno-double-promotion",
26  "-Wno-comma",
27  "-Wno-extra-semi",
28  "-Wno-extra-semi-stmt",
29  "-Wno-packed",
30  "-Wno-padded",
31  "-Wno-sign-compare",
32  "-Wno-float-conversion",
33  "-Wno-float-equal",
34  "-Wno-format-nonliteral",
35  "-Wno-gcc-compat",
36  "-Wno-global-constructors",
37  "-Wno-exit-time-destructors",
38  "-Wno-non-modular-include-in-module",
39  "-Wno-old-style-cast",
40  "-Wno-range-loop-analysis",
41  "-Wno-reserved-id-macro",
42  "-Wno-shorten-64-to-32",
43  "-Wno-switch-enum",
44  "-Wno-thread-safety-negative",
45  "-Wno-unknown-warning-option",
46  "-Wno-unreachable-code",
47  "-Wno-unused-macros",
48  "-Wno-weak-vtables",
49  "-Wno-zero-as-null-pointer-constant",
50  "-Wbitfield-enum-conversion",
51  "-Wbool-conversion",
52  "-Wconstant-conversion",
53  "-Wenum-conversion",
54  "-Wint-conversion",
55  "-Wliteral-conversion",
56  "-Wnon-literal-null-conversion",
57  "-Wnull-conversion",
58  "-Wobjc-literal-conversion",
59  "-Wno-sign-conversion",
60  "-Wstring-conversion",
61  "-DNOMINMAX",
62]
63