From 702d3e2d9ca55ea330101c925df12e8fc9b40387 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 30 Aug 2013 22:20:10 +0300 Subject: Work started on supporting simultaneous native and cross builds. --- build.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build.py') 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 -- cgit v1.1