有没有机会禁用 Asan 的终端颜色输出?无论我通过哪个标志,它都会打印终端颜色代码:
Heap left redzone: [1m[31mfa[1m[0m
Freed heap region: [1m[35mfd[1m[0m
Stack left redzone: [1m[31mf1[1m[0m
Stack mid redzone: [1m[31mf2[1m[0m
Stack right redzone: [1m[31mf3[1m[0m
Stack partial redzone: [1m[31mf4[1m[0m
Stack after return: [1m[35mf5[1m[0m
我尝试过的论点:
clang++ -fsanitize=address -fno-color-diagnostics ...
clang++ -fsanitize=address -fcolor-diagnostics=never ...
clang++ -fsanitize=address -fdiagnostics-color=never ...
我想念什么?有没有我可以用来关闭它的 API?