diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-30 22:20:10 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-30 22:20:10 +0300 |
| commit | 702d3e2d9ca55ea330101c925df12e8fc9b40387 (patch) | |
| tree | e947815ae107d5cb46c54616e8bd75be562dd992 /build.py | |
| parent | 6a6f0d1d84fd914ab6e20e57f6f0c1c047ef34e2 (diff) | |
| download | meson-702d3e2d9ca55ea330101c925df12e8fc9b40387.tar.gz | |
Work started on supporting simultaneous native and cross builds.
Diffstat (limited to 'build.py')
| -rw-r--r-- | build.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
