Skip to content

Commit

Permalink
fix RISCVTarget.is_bare
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippvK committed Aug 5, 2024
1 parent 029b537 commit 28dff71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlonmcu/target/riscv/riscv.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ def is_cross(self):

@property
def is_bare(self):
if "elf" in str(self.riscv_gcc_prefix):
if "elf" in str(self.riscv_gcc_basename):
return True
elif "linux" in str(self.riscv_gcc_prefix):
elif "linux" in str(self.riscv_gcc_basename):
return False
else:
return None # unknown
Expand Down

0 comments on commit 28dff71

Please sign in to comment.