aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/cmake/toolchain.py
AgeCommit message (Collapse)AuthorFilesLines
2022-01-23cmake: Add TARGET_ generator expression support (fixes #9305)Daniel Mensinger1-1/+1
2021-10-08cmake: handle arguments in the [binaries] section of the machine filePaolo Bonzini1-6/+17
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.
2021-09-14apply flake8 fixes for unused imports and missing importsEli Schwartz1-1/+0
2021-06-29fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger1-4/+4
2021-05-30cmake: select correct generator in toolchain.pyDaniel Mensinger1-2/+5
2021-05-29cmake: Fix CMakeToolchain (fixes #8293)Daniel Mensinger1-65/+93
Instead of guessing the internal compiler variables, Meson now runns CMake once to determine what they actually are.
2021-03-04mass rewrite of string formatting to use f-strings everywhereEli Schwartz1-1/+1
performed by running "pyupgrade --py36-plus" and committing the results
2020-11-20use real pathlib moduleDylan Baker1-1/+1
We added the _pathlib module to work around defeciencies in python 3.5's implementation, since we now rely on 3.6 lets drop this
2020-10-13cmake: Add cross compilation supportDaniel Mensinger1-0/+217