Skip to content

Commit

Permalink
Merge pull request #1767 from josuah/fix_radiant_platform_detection
Browse files Browse the repository at this point in the history
build/lattice/radiant: fix uname() not prefixed by 'os.'
  • Loading branch information
enjoy-digital authored Sep 6, 2023
2 parents 99cb46f + 5e4628f commit e185871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions litex/build/lattice/radiant.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def build_script(self):
script_contents += self._yosys.get_yosys_call(target="script") + "\n"

# Radiant installed on Windows, executed from WSL2
if "microsoft-standard" in uname().release and which("pnmainc.exe") is not None:
if "microsoft-standard" in os.uname().release and which("pnmainc.exe") is not None:
tool = "pnmainc.exe"

script_contents += "{tool} {tcl_script}{fail_stmt}\n".format(
Expand All @@ -237,7 +237,7 @@ def run_script(self, script):
tool = "radiantc"

# Radiant installed on Windows, executed from WSL2
if "microsoft-standard" in uname().release and which("pnmainc.exe") is not None:
if "microsoft-standard" in os.uname().release and which("pnmainc.exe") is not None:
tool = "pnmainc.exe"

if which(tool) is None:
Expand Down

0 comments on commit e185871

Please sign in to comment.