From 0f31d907f1984d9f536c73a1feec42806116898b Mon Sep 17 00:00:00 2001 From: Craig Noble Date: Mon, 8 Jan 2018 12:18:42 +0000 Subject: Remove dependency on Get-DriveInfo for powershell compile scripts --- libraries/vendors/compile-xilinx-vivado.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libraries/vendors/compile-xilinx-vivado.ps1') 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) -- cgit v1.2.3