[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 9 Sep 2021 10:22:26 -0700
From: Nick Desaulniers <ndesaulniers@...gle.com>
To: Kortan <kortanzh@...il.com>
Cc: nathan@...nel.org, masahiroy@...nel.org,
linux-kbuild@...r.kernel.org, llvm@...ts.linux.dev,
clang-built-linux@...glegroups.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] gen_compile_commands: fix missing 'sys' package
On Tue, Sep 7, 2021 at 8:30 PM Kortan <kortanzh@...il.com> wrote:
>
> We need to import the 'sys' package since the script has called
> sys.exit() method.
>
> Signed-off-by: Kortan <kortanzh@...il.com>
I'm quite sure I've run this script before; how have we not noticed
such an issue before?
> ---
> Changes v1 -> v2:
> * Fix commit title.
> * Improve commit message.
>
> 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 0033eedce003..1d1bde1fd45e 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.33.0
>
> --
> You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@...glegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20210908032847.18683-1-kortanzh%40gmail.com.
--
Thanks,
~Nick Desaulniers
Powered by blists - more mailing lists