blob: cc28491834ddae1bf41d8ce6415cc1211c426801 (
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
|
from .__init__ import Feature
class FeatureGCC(Feature):
"""GCC Compiler."""
name = "gcc"
description = "GCC Compiler"
conflicts = ("clang",)
def build(self, c):
c.USE_GCC = True
class FeatureClang(Feature):
"""Clang Compiler."""
name = "clang"
description = "Clang Compiler"
conflicts = ("gcc",)
def build(self, c):
c.USE_CLANG = True
class FeatureDebug(Feature):
"""Debug Options"""
name = "debug"
description = "Enable debug options"
def build(self, c):
c.ENABLE_DEBUG = True
|