Skip to content

Commit

Permalink
Fix spike bug cause by extra_args config
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK authored and Philipp v. K committed Jun 15, 2022
1 parent 292ec9d commit 373d533
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mlonmcu/target/riscv.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,13 @@ def abi(self):

@property
def extra_args(self):
return str(self.config["extra_args"])
ret = self.config["extra_args"]
if isinstance(ret, str):
if len(ret) == 0:
ret = []
else:
ret = [ret] # TODO: properly split quoted args
return ret

@property
def timeout_sec(self):
Expand Down

0 comments on commit 373d533

Please sign in to comment.