Skip to content

Commit

Permalink
optimized the for loop for extensions and targets usage
Browse files Browse the repository at this point in the history
  • Loading branch information
IIITM-Jay committed Oct 27, 2024
1 parent 1166a7d commit 837fbba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
print(f"Running with args : {sys.argv}")

extensions = sys.argv[1:]
for i in [

targets = {
"-c",
"-chisel",
"-go",
Expand All @@ -34,9 +35,9 @@
"-rust",
"-spinalhdl",
"-sverilog",
]:
if i in extensions:
extensions.remove(i)
}

extensions = [ext for ext in extensions if ext not in targets]
print(f"Extensions selected : {extensions}")

include_pseudo = False
Expand Down

0 comments on commit 837fbba

Please sign in to comment.