diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-07-17 19:35:46 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-08-11 20:38:35 +0300 |
commit | 8764e4f579287d2bc15d5ea8b0a5382c90712ec0 (patch) | |
tree | a072c534495d211b663bdcfd99c95640ead7e61a /mesonbuild/interpreter.py | |
parent | e5b515aa1d2e58b06bf1b1bbcbdb851ac531bb32 (diff) | |
download | meson-8764e4f579287d2bc15d5ea8b0a5382c90712ec0.zip meson-8764e4f579287d2bc15d5ea8b0a5382c90712ec0.tar.gz meson-8764e4f579287d2bc15d5ea8b0a5382c90712ec0.tar.bz2 |
Print only host platform info in some cases during native builds
Build and target info is confusing in that case. However still log that
information, as it is useful in case something slips out of sync and
needs to be debugged.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index c6ad815..d45b313 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2822,9 +2822,12 @@ external dependencies (including libraries) must go to "dependencies".''') continue else: raise - if machine_name != 'build' or self.environment.is_cross_build(): - mlog.log(comp.get_display_language(), 'compiler for the', machine_name, 'machine:', - mlog.bold(' '.join(comp.get_exelist())), comp.get_version_string()) + if for_machine == MachineChoice.HOST or self.environment.is_cross_build(): + logger_fun = mlog.log + else: + logger_fun = mlog.debug + logger_fun(comp.get_display_language(), 'compiler for the', machine_name, 'machine:', + mlog.bold(' '.join(comp.get_exelist())), comp.get_version_string()) self.build.ensure_static_linker(comp) langs = self.coredata.compilers[for_machine].keys() |