diff options
author | Craig Noble <craign@trig-avionics.com> | 2018-01-08 12:18:42 +0000 |
---|---|---|
committer | Craig Noble <craign@trig-avionics.com> | 2018-01-08 12:18:42 +0000 |
commit | 0f31d907f1984d9f536c73a1feec42806116898b (patch) | |
tree | 59ccd1233a495d23d72cbd8c4d4a6bbd96948117 /libraries/vendors/compile-xilinx-vivado.ps1 | |
parent | 97813f901e260c3ae1506c272651da3b09e0dcf1 (diff) | |
download | ghdl-0f31d907f1984d9f536c73a1feec42806116898b.tar.gz ghdl-0f31d907f1984d9f536c73a1feec42806116898b.tar.bz2 ghdl-0f31d907f1984d9f536c73a1feec42806116898b.zip |
Remove dependency on Get-DriveInfo for powershell compile scripts
Diffstat (limited to 'libraries/vendors/compile-xilinx-vivado.ps1')
-rw-r--r-- | libraries/vendors/compile-xilinx-vivado.ps1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/vendors/compile-xilinx-vivado.ps1 b/libraries/vendors/compile-xilinx-vivado.ps1 index c25ab0c08..1338048d5 100644 --- a/libraries/vendors/compile-xilinx-vivado.ps1 +++ b/libraries/vendors/compile-xilinx-vivado.ps1 @@ -113,8 +113,8 @@ function Get-XilinxVivadoDirectory { return $XILINX_VIVADO + "\" + (Get-VendorToolSourceDirectory) } else { $EnvSourceDir = "" - foreach ($Drive in Get-DriveInfo) - { $Path = $Drive.Name + "Xilinx\Vivado" + foreach ($Drive in gdr -PSProvider 'FileSystem') + { $Path = $Drive.Name + ":\" + "Xilinx\Vivado" if (Test-Path $Path -PathType Container) { foreach ($Major in 2018..2014) { foreach ($Minor in 4..1) |