-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mk/Uses/meson.mk: Do not force color output (D29353)
By default Meson forces color output. Ninja strips the escape sequences before they go into the log. Samurai does not do that, so we end up with some garbage in the logs. Pass -Db_colorout=never to Meson to disable colors in general. Also see https://mesonbuild.com/Builtin-options.html This requires a small backport in devel/meson since the b_colorout option is broken with Clang at the moment. PR: 254678 Exp-run by: antoine
- Loading branch information
Tobias Kortkamp
authored and
Tobias Kortkamp
committed
Apr 20, 2021
1 parent
a91d653
commit ff2796d
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
devel/meson/files/patch-mesonbuild_compilers_mixins_clang.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
From c24a0f852489124fa002bdc90b5753547899b1cb Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Krzysztof=20Ma=C5=82ysa?= <varqox@gmail.com> | ||
Date: Tue, 16 Feb 2021 18:46:06 +0100 | ||
Subject: [PATCH] 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 | ||
--- mesonbuild/compilers/mixins/clang.py.orig 2021-02-20 13:17:16 UTC | ||
+++ 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 = { |