diff options
author | John Ericson <git@JohnEricson.me> | 2019-01-10 01:43:44 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-01-30 00:12:47 +0200 |
commit | 940c6de3ae5941fb0b70ebd5a8ce85b524ed2182 (patch) | |
tree | 28983bc4d56c971ec3c19d1a6e55b200df7d26a8 /docs | |
parent | cccffaa29d63503128803b848bd4843cc942538d (diff) | |
download | meson-940c6de3ae5941fb0b70ebd5a8ce85b524ed2182.zip meson-940c6de3ae5941fb0b70ebd5a8ce85b524ed2182.tar.gz meson-940c6de3ae5941fb0b70ebd5a8ce85b524ed2182.tar.bz2 |
Overhaul pkg-config and CMake lookup, fixing the latter
First, I noticed there was a dangling use of now-removed cross_info in
the CMake lookup. No tests had caught this, but it means that CMake deps
were totally broken. [It also meant that CMake could not be specified
from a native file.]
In a previous of mine PR which removed cross_info, I overhauled finding
pkg-config a bit so that the native and cross paths were shared. I
noticed that the CMake code greatly resembled the pkg-config code, so I
set about fixing it to match.
I then realized I could refactor things further, separating caching,
finding alternatives, and validating them, while also making the
validations less duplicated. So I ended up changing pkg config lookup a
lot too (and CMake again, to keep matching).
Overall, I think I have the proper ideom for tool lookup now, repated in
two places. I think it would make sense next to share this logic between
these two, compilers, static linkers, and any other tool similarly
specifiable. Either the `BinaryTable` class in environment.py, or a new
class for `Compiler` and friends to subclass, would be good candidates
for this.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions