⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion VendorScripts_GHDL.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ package require fileutil
# running on MSYS2 - convert which with cygpath
set ghdl [exec cygpath -m [exec which ghdl]]
} else {
set ghdl [exec which ghdl]
set delimiter [expr {[string match "*;*" $::env(PATH)] ? ";" : ":"}]
foreach dir [split $::env(PATH) $delimiter] {
set fullPath [file join $dir "ghdl.exe"]
if {[file exists $fullPath] && [file executable $fullPath]} {
set ghdl [file normalize $fullPath]
break
}
}
}

regexp {GHDL\s+\d+\.\d+\S*} [exec $ghdl --version] VersionString
Expand Down