mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.58k stars 1.62k forks source link

[Wish] Improve logging #7098

Open denizzzka opened 4 years ago

denizzzka commented 4 years ago

It would be nice to show source of errors similar to this one in the log:

~/Dev/meson/meson.py setup --cross-file arm_cortex_m3_cross.ini builddir
[...]
meson.build:1:0: ERROR: Unable to determine dynamic linker

A full log can be found at [...]/builddir/meson-logs/meson-log.txt

As I understand, inside of Meson compiler or an linker was called with some options, and it returned something. I would like to see this in a log file. It really will helpfull for debugging Meson build and cross files.

dcbaker commented 4 years ago

I've been thinking about this, and we should probably just reuse the code the compiler selector uses in the linker selector.