aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/rust.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2023-06-29 09:28:19 -0700
committerDylan Baker <dylan@pnwbakers.com>2023-06-29 13:36:47 -0700
commita227768b378caa7a5f9faf42936bdad8cd6123dd (patch)
treeba330c60ae13e793c0aaa12edb11afbbe249116b /mesonbuild/compilers/rust.py
parentf58bd2ae11429ee7aa911de631faece718fbfe14 (diff)
downloadmeson-a227768b378caa7a5f9faf42936bdad8cd6123dd.zip
meson-a227768b378caa7a5f9faf42936bdad8cd6123dd.tar.gz
meson-a227768b378caa7a5f9faf42936bdad8cd6123dd.tar.bz2
compilers/cpp: try to do a better job of detecting libc++ vs libstdc++
Currently, we hardcode libc++ for MacOS (and derivatives), and libstdc++ for all other cases. Clang had some hackery to make this work in many cases. However, this doesn't always work, namely if you try to to use Rust as the linker when libc++ is required. This implementation does, as an optimization, provide a hardcoded list of OSes we know always use libc++, and otherwise will attempt to detect it. As a second optimization, the detected values are cached, so the lookup is only done once fixes: #11921
Diffstat (limited to 'mesonbuild/compilers/rust.py')
0 files changed, 0 insertions, 0 deletions