diff options
author | Ingo Molnar <mingo@kernel.org> | 2024-02-26 13:06:14 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2024-02-26 13:06:14 +0300 |
commit | 29cd85557d8b8b3d068b5c29fdd9a0fa9ca7ef7a (patch) | |
tree | 3f048414d5cb54d3c88af9de7dd4426f66d93ddb /scripts/clang-tools/gen_compile_commands.py | |
parent | c2cfc23f79676a9857a5a48911011bd56e23fd46 (diff) | |
parent | d206a76d7d2726f3b096037f2079ce0bd3ba329b (diff) | |
download | linux-29cd85557d8b8b3d068b5c29fdd9a0fa9ca7ef7a.tar.xz |
Merge tag 'v6.8-rc6' into x86/boot, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
-rwxr-xr-x | scripts/clang-tools/gen_compile_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/clang-tools/gen_compile_commands.py b/scripts/clang-tools/gen_compile_commands.py index 5dea4479240b..e4fb686dfaa9 100755 --- a/scripts/clang-tools/gen_compile_commands.py +++ b/scripts/clang-tools/gen_compile_commands.py @@ -170,7 +170,7 @@ def process_line(root_directory, command_prefix, file_path): # escape the pound sign '#', either as '\#' or '$(pound)' (depending on the # kernel version). The compile_commands.json file is not interepreted # by Make, so this code replaces the escaped version with '#'. - prefix = command_prefix.replace('\#', '#').replace('$(pound)', '#') + prefix = command_prefix.replace(r'\#', '#').replace('$(pound)', '#') # Return the canonical path, eliminating any symbolic links encountered in the path. abs_path = os.path.realpath(os.path.join(root_directory, file_path)) |