diff options
author | Krzysztof Małysa <varqox@gmail.com> | 2021-02-16 18:46:06 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-02-18 17:30:33 +0200 |
commit | c24a0f852489124fa002bdc90b5753547899b1cb (patch) | |
tree | 4d1b965588eeaa2995ad5d3d873defdca1d3f31d /mesonbuild | |
parent | fad408a521d218fb6e0a38c2476b40f9ace5d02d (diff) | |
download | meson-c24a0f852489124fa002bdc90b5753547899b1cb.zip meson-c24a0f852489124fa002bdc90b5753547899b1cb.tar.gz meson-c24a0f852489124fa002bdc90b5753547899b1cb.tar.bz2 |
compilers: clang: Drop -Xclang before -fcolor-diagnostics flag
Using -Xclang -fcolor-diagnostics provides no advantage to using just -fcolor-diagnostics option and sometimes causes problems:
* uncolored diagnostics on Arch Linux: https://bugs.archlinux.org/task/69662
* simple problem with removing flag -fcolor-diagnostics: https://github.com/clangd/clangd/issues/279
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/compilers/mixins/clang.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/mixins/clang.py b/mesonbuild/compilers/mixins/clang.py index 7531e57..fd1966f 100644 --- a/mesonbuild/compilers/mixins/clang.py +++ b/mesonbuild/compilers/mixins/clang.py @@ -29,9 +29,9 @@ if T.TYPE_CHECKING: from ...dependencies import Dependency # noqa: F401 clang_color_args = { - 'auto': ['-Xclang', '-fcolor-diagnostics'], - 'always': ['-Xclang', '-fcolor-diagnostics'], - 'never': ['-Xclang', '-fno-color-diagnostics'], + 'auto': ['-fcolor-diagnostics'], + 'always': ['-fcolor-diagnostics'], + 'never': ['-fno-color-diagnostics'], } # type: T.Dict[str, T.List[str]] clang_optimization_args = { |