Skip to content

Commit

Permalink
Simplify common_cxxflags
Browse files Browse the repository at this point in the history
Signed-off-by: Bartłomiej Chmiel <[email protected]>
  • Loading branch information
b-chmiel committed Nov 20, 2024
1 parent c8b2bf2 commit ae2ea25
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nodist/clang_check_attributes
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ def main():
for refid, file in enumerate(cmdline.file):
filename = os.path.abspath(file)
root = default_compilation_root
cxxflags = []
cxxflags = common_cxxflags[:]
if compdb:
entry = compdb.getCompileCommands(filename)
if entry is None:
Expand All @@ -1165,9 +1165,7 @@ def main():
# compiler executable name/path. CIndex (libclang) always
# implicitly prepends executable name, so it shouldn't be passed
# here.
cxxflags = common_cxxflags + entry_args[1:]
else:
cxxflags = common_cxxflags[:]
cxxflags.extend(entry_args[1:])

compile_command = CompileCommand(refid, filename, cxxflags, root)
compile_commands_list.append(compile_command)
Expand Down

0 comments on commit ae2ea25

Please sign in to comment.