Skip to content

Commit c99eb4b

Browse files
committed
Updated GHDL libraries to use relative paths - @Paebbels
1 parent 8700df2 commit c99eb4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

VendorScripts_GHDL.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
# limitations under the License.
4848
#
4949

50+
package require fileutil
5051

5152
# -------------------------------------------------
5253
# Tool Settings
@@ -115,7 +116,7 @@ proc IsVendorCommand {LineOfText} {
115116
# Library
116117
#
117118
proc GhdlLibraryPath {LibraryName PathToLib} {
118-
set PathAndLib "${PathToLib}/[string tolower ${LibraryName}]/v${::osvvm::VhdlShortVersion}"
119+
set PathAndLib "[::fileutil::relative [pwd] ${PathToLib}/[string tolower ${LibraryName}]/v${::osvvm::VhdlShortVersion}]"
119120
return $PathAndLib
120121
}
121122

0 commit comments

Comments
 (0)