diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-03-16 21:55:03 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-03-16 21:55:03 +0200 |
commit | 19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51 (patch) | |
tree | bbeb0676bbfabfb208b0ad2438c62b5cfcb0d3b0 /mesonbuild/interpreter.py | |
parent | a3004652eaa8eef877ccf009e7a6ec8e32ad3475 (diff) | |
download | meson-19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51.zip meson-19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51.tar.gz meson-19046fd8543c2c1c7b8cfc1aa6fef11741f3fc51.tar.bz2 |
Added new base options and some sample opts for gcc.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 2ade18a..39546b5 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -19,6 +19,7 @@ from . import dependencies from . import mlog from . import build from . import optinterpreter +from . import compilers from .wrap import wrap from . import mesonlib @@ -1523,8 +1524,15 @@ class Interpreter(): self.build.add_cross_compiler(cross_comp) if self.environment.is_cross_build() and not need_cross_compiler: self.build.add_cross_compiler(comp) + self.add_base_options(comp) return success + def add_base_options(self, compiler): + for optname in compiler.base_options: + if optname in self.coredata.base_options: + continue + self.coredata.base_options[optname] = compilers.base_options[optname] + def func_find_program(self, node, args, kwargs): self.validate_arguments(args, 1, [str]) required = kwargs.get('required', True) |