Skip to content

Commit

Permalink
target/riscv/utils.py: merge imafd to g when joining extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Dec 19, 2023
1 parent d53ed3e commit 3ec39b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mlonmcu/target/riscv/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,12 @@ def _get_index(x):
return extensions_new


def join_extensions(exts):
def join_extensions(exts, merge=True):
sep = ""
ret = ""
if merge:
if "i" in exts and "m" in exts and "a" in exts and "f" in exts and "d" in exts:
exts = ["g"] + [e for e in exts if e not in "imafd"]
for ext in exts:
length = len(ext)
if sep == "_":
Expand Down

0 comments on commit 3ec39b1

Please sign in to comment.