summaryrefslogtreecommitdiff
path: root/etc/defaults/CC/TARGETS.just
blob: ea501e096d81f3927678efc2c0a0072c68084a97 (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
{ "defaults":
  { "type": ["CC", "defaults"]
  , "arguments_config": ["DEBUG"]
  , "base": [["@", "base", "CC", "defaults"]]
  , "ADD_CFLAGS":
    [ "-std=gnu17"
    , "-Wall"
    , "-Wextra"
    , "-Wpedantic"
    , "-Wsign-conversion"
    , "-Werror"
    , "-pedantic-errors"
    ]
  , "ADD_CXXFLAGS":
    { "type": "++"
    , "$1":
      [ [ "-std=c++20"
        , "-Wall"
        , "-Wextra"
        , "-Wpedantic"
        , "-Wsign-conversion"
        , "-Werror"
        , "-pedantic-errors"
        ]
      , { "type": "if"
        , "cond": {"type": "var", "name": "DEBUG"}
        , "then": ["-Dgsl_CONFIG_CONTRACT_CHECKING_AUDIT=1"]
        }
      ]
    }
  }
}