summaryrefslogtreecommitdiff
path: root/py/config/feature.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/config/feature.py')
-rw-r--r--py/config/feature.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/py/config/feature.py b/py/config/feature.py
new file mode 100644
index 0000000000..cc28491834
--- /dev/null
+++ b/py/config/feature.py
@@ -0,0 +1,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
+