diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-30 23:00:19 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-30 23:00:19 +0300 |
commit | 29174b669faf684e789e3fe817787e48a7621dd3 (patch) | |
tree | 2b3da59b74110788452213f3ec27ad0209a43d2c | |
parent | 52ed7fd8f84b052604b6a8e404d8d990a9d277ed (diff) | |
download | meson-29174b669faf684e789e3fe817787e48a7621dd3.zip meson-29174b669faf684e789e3fe817787e48a7621dd3.tar.gz meson-29174b669faf684e789e3fe817787e48a7621dd3.tar.bz2 |
Make native build work again.
-rw-r--r-- | environment.py | 4 | ||||
-rw-r--r-- | interpreter.py | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/environment.py b/environment.py index cb8913a..a29e9e4 100644 --- a/environment.py +++ b/environment.py @@ -847,9 +847,9 @@ class Environment(): path = os.path.split(__file__)[0] return os.path.join(path, 'depfixer.py') - def detect_cpp_compiler(self): + def detect_cpp_compiler(self, want_cross): evar = 'CXX' - if self.is_cross_build(): + if self.is_cross_build() and want_cross: compilers = [self.cross_info['cpp']] ccache = [] is_cross = True diff --git a/interpreter.py b/interpreter.py index 13c035f..e0adca3 100644 --- a/interpreter.py +++ b/interpreter.py @@ -592,17 +592,17 @@ class Executable(BuildTarget): self.filename = self.name class StaticLibrary(BuildTarget): - def __init__(self, name, subdir, sources, environment, kwargs): - BuildTarget.__init__(self, name, subdir, sources, kwargs) + def __init__(self, name, subdir, is_cross, sources, environment, kwargs): + BuildTarget.__init__(self, name, subdir, is_cross, sources, kwargs) prefix = environment.get_static_lib_prefix() suffix = environment.get_static_lib_suffix() self.filename = prefix + self.name + '.' + suffix class SharedLibrary(BuildTarget): - def __init__(self, name, subdir, sources, environment, kwargs): + def __init__(self, name, subdir, is_cross, sources, environment, kwargs): self.version = None self.soversion = None - BuildTarget.__init__(self, name, subdir, sources, kwargs) + BuildTarget.__init__(self, name, subdir, is_cross, sources, kwargs) self.prefix = environment.get_shared_lib_prefix() self.suffix = environment.get_shared_lib_suffix() |