[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210914154441.1726853-1-andreas@rammhold.de>
Date: Tue, 14 Sep 2021 17:44:40 +0200
From: andreas@...mhold.de
To: Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>
Cc: Andreas Rammhold <andreas@...mhold.de>, llvm@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH] gen_compile_commands: add missing sys import
From: Andreas Rammhold <andreas@...mhold.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@...mhold.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
Powered by blists - more mailing lists