All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gen_compile_commands: add missing sys import
@ 2021-09-14 15:44 andreas
  2021-09-14 16:01 ` Nick Desaulniers
  2021-09-14 16:01 ` Nathan Chancellor
  0 siblings, 2 replies; 4+ messages in thread
From: andreas @ 2021-09-14 15:44 UTC (permalink / raw)
  To: Nathan Chancellor, Nick Desaulniers; +Cc: Andreas Rammhold, llvm, linux-kernel

From: Andreas Rammhold <andreas@rammhold.de>

The sys.exit was being used at multiple locations within the script but
never imported. This lead to the script exiting with a error instead of
with the nicely formatted (useful) error output.

Signed-off-by: Andreas Rammhold <andreas@rammhold.de>
---
 scripts/clang-tools/gen_compile_commands.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py
index 0033eedce003e..1d1bde1fd45eb 100755
--- a/scripts/clang-tools/gen_compile_commands.py
+++ b/scripts/clang-tools/gen_compile_commands.py
@@ -13,6 +13,7 @@ import logging
 import os
 import re
 import subprocess
+import sys
 
 _DEFAULT_OUTPUT = 'compile_commands.json'
 _DEFAULT_LOG_LEVEL = 'WARNING'
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-14 16:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 15:44 [PATCH] gen_compile_commands: add missing sys import andreas
2021-09-14 16:01 ` Nick Desaulniers
2021-09-14 16:01 ` Nathan Chancellor
2021-09-14 16:31   ` Andreas Rammhold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.