aboutsummaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'build.py')
-rw-r--r--build.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/build.py b/build.py
index a456ef7..0b5a940 100644
--- a/build.py
+++ b/build.py
@@ -22,6 +22,7 @@ class Build:
self.project = None
self.targets = {}
self.compilers = []
+ self.cross_compilers = []
self.global_args = {}
self.tests = []
self.headers = []
@@ -35,6 +36,11 @@ class Build:
self.static_linker = self.environment.detect_static_linker(compiler)
self.compilers.append(compiler)
+ def add_cross_compiler(self, compiler):
+ #if len(self.cross_compilers) == 0:
+ # self.static_linker = self.environment.detect_static_linker(compiler)
+ self.cross_compilers.append(compiler)
+
def get_project(self):
return self.project