Skip to content

Commit

Permalink
diamond.sh: Add extra logic to set diamonddir automatically for 3.12 …
Browse files Browse the repository at this point in the history
…on Windows- the default path changed.
  • Loading branch information
cr1901 authored and Ravenslofty committed Feb 8, 2023
1 parent 86d8e36 commit 84f6d5d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion diamond.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ else
fi

if $WINDOWS; then
diamonddir="${DIAMONDDIR:-/c/lscc/diamond/${diamondver}_x64}"
case $diamondver in
"3.12")
diamonddir="${DIAMONDDIR:-/c/lscc/diamond/${diamondver}}"
;;
*)
diamonddir="${DIAMONDDIR:-/c/lscc/diamond/${diamondver}_x64}"
;;
esac
else
diamonddir="${DIAMONDDIR:-/usr/local/diamond/${diamondver}_x64}"
fi
Expand Down

0 comments on commit 84f6d5d

Please sign in to comment.