diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-05-15 08:33:21 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-05-16 23:05:49 +0300 |
commit | 7ce9e56a4b7186d672611c43393e777bb3c479fc (patch) | |
tree | 215781b5ce78ecb34f3403ed47d8512202321ab7 /mesonbuild/modules/cmake.py | |
parent | 61750494f5ce7bd50d6856c36537cb7e8f5a7921 (diff) | |
download | meson-7ce9e56a4b7186d672611c43393e777bb3c479fc.zip meson-7ce9e56a4b7186d672611c43393e777bb3c479fc.tar.gz meson-7ce9e56a4b7186d672611c43393e777bb3c479fc.tar.bz2 |
Fix path splitting in get_compiler_dirs() with GCC/clang on Windows
It was using ':' as a path separator while GCC uses ';' resulting in bogus
paths being returned. Instead assume that the compiler uses the platform native
separator.
The previous splitting code still worked sometimes because splitting
"C:/foo;C:/bar" resulted in the last part "/bar" being valid if "<DriveOfCWD>:/bar"
existed.
The fix also exposes a clang Windows bug where it uses the wrong separator:
https://reviews.llvm.org/D61121 . Use a regex to fix those first.
This resulted in linker errors when statically linking against a library which
had an external dependency linking against system libs.
Fixes #5386
Diffstat (limited to 'mesonbuild/modules/cmake.py')
0 files changed, 0 insertions, 0 deletions