aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/backends.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-10-08 12:20:35 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2021-10-08 20:09:43 +0200
commit7639b70796c7199120711afefb405bb31e110051 (patch)
tree85122df453974ab100ef931906674ca772c8c2a0 /mesonbuild/backend/backends.py
parent3f8c78b3172cfc78762cb0bf294c5aaafc18ca44 (diff)
downloadmeson-7639b70796c7199120711afefb405bb31e110051.zip
meson-7639b70796c7199120711afefb405bb31e110051.tar.gz
meson-7639b70796c7199120711afefb405bb31e110051.tar.bz2
cmake: handle arguments in the [binaries] section of the machine file
Sometimes, the machine file can include compiler command line options, in order to pick the correct multilib. For example, Meson uses "$cc --print-search-dirs" to find the library search path, where $cc is the cc from the machine file. Because the outputs of "gcc -m32 --print-search-dirs" and "gcc --print-search-dirs" are different, this only works if you have [binaries] cc = ['gcc', '-m32'] in the machine file. Right now, however, the cmake module assumes that the compiler listed in the machine file is either a compiler, or a "launcher" followed by the compiler. Check if the second argument starts with a slash (for Microsoft-like compilers) or a dash (for everyone else), and if so presume that the CMAKE_*_COMPILER_LAUNCHER need not be defined.
Diffstat (limited to 'mesonbuild/backend/backends.py')
0 files changed, 0 insertions, 0 deletions