summaryrefslogtreecommitdiff
path: root/etc/defaults/CC/TARGETS.protobuf
blob: 229c8f311b7050a46cde3cfdf3cc60cd387dfd33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{ "defaults":
  { "type": ["CC", "defaults"]
  , "arguments_config": ["ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG"]
  , "base": [["@", "base", "CC", "defaults"]]
  , "ADD_CFLAGS": ["-std=gnu17"]
  , "ADD_CXXFLAGS":
    { "type": "let*"
    , "bindings":
      [ [ "COMPILER_FAMILY"
        , { "type": "lookup"
          , "map":
            { "type": "var"
            , "name": "TOOLCHAIN_CONFIG"
            , "default": {"type": "empty_map"}
            }
          , "key": "FAMILY"
          , "default": "unknown"
          }
        ]
      ]
    , "body":
      { "type": "++"
      , "$1":
        [ ["-std=c++17", "-DHAVE_PTHREAD=1", "-DHAVE_ZLIB=1"]
        , { "type": "case"
          , "expr": {"type": "var", "name": "COMPILER_FAMILY"}
          , "case":
            { "msvc":
              [ "/wd4065"
              , "/wd4146"
              , "/wd4244"
              , "/wd4251"
              , "/wd4267"
              , "/wd4305"
              , "/wd4307"
              , "/wd4309"
              , "/wd4334"
              , "/wd4355"
              , "/wd4506"
              , "/wd4800"
              , "/wd4996"
              ]
            , "gnu":
              [ "-Wall"
              , "-Woverloaded-virtual"
              , "-Wno-sign-compare"
              , "-Wno-sign-conversion"
              , "-Wno-unused-function"
              , "-Wno-deprecated-declarations"
              , "-Wno-nonnull"
              ]
            }
          , "default":
            [ "-Wall"
            , "-Woverloaded-virtual"
            , "-Wno-sign-compare"
            , "-Wno-sign-conversion"
            , "-Wno-unused-function"
            , "-Wno-deprecated-declarations"
            , "-Wno-deprecated-enum-enum-conversion"
            , "-Wno-nonnull"
            ]
          }
        ]
      }
    }
  }
}