From 703253e522b68f7ab739a11befc72377ef0ab526 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Wed, 22 Sep 2021 23:19:08 +0200 Subject: Fixed parameter types and how to pass boolean/switch parameters from PoSh script to PoSh script. --- scripts/vendors/compile-uvvm.ps1 | 2 +- scripts/vendors/compile-xilinx-vivado.ps1 | 2 +- scripts/vendors/shared.psm1 | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/vendors/compile-uvvm.ps1 b/scripts/vendors/compile-uvvm.ps1 index e1e57f7ac..a8960be85 100644 --- a/scripts/vendors/compile-uvvm.ps1 +++ b/scripts/vendors/compile-uvvm.ps1 @@ -167,7 +167,7 @@ New-DestinationDirectory $DestinationDirectory cd $DestinationDirectory -$VHDLVersion,$VHDLStandard,$VHDLFlavor = Get-VHDLVariables +$VHDLVersion,$VHDLStandard,$VHDLFlavor = Get-VHDLVariables -VHDL2008 # define global GHDL Options $Analyze_Parameters = @( diff --git a/scripts/vendors/compile-xilinx-vivado.ps1 b/scripts/vendors/compile-xilinx-vivado.ps1 index f336a8994..790dd09a5 100644 --- a/scripts/vendors/compile-xilinx-vivado.ps1 +++ b/scripts/vendors/compile-xilinx-vivado.ps1 @@ -131,7 +131,7 @@ if ($VHDL2008) { Write-Host "Not all Xilinx primitives are VHDL-2008 compatible! Setting HaltOnError to FALSE." -ForegroundColor Red $HaltOnError = $false } -$VHDLVersion,$VHDLStandard,$VHDLFlavor = Get-VHDLVariables $VHDL93 $VHDL2008 +$VHDLVersion,$VHDLStandard,$VHDLFlavor = Get-VHDLVariables -VHDL93:$VHDL93 -VHDL2008:$VHDL2008 # define global GHDL Options $Analyze_Parameters = @( diff --git a/scripts/vendors/shared.psm1 b/scripts/vendors/shared.psm1 index 0c15ef53f..eb3c4c037 100644 --- a/scripts/vendors/shared.psm1 +++ b/scripts/vendors/shared.psm1 @@ -188,8 +188,8 @@ function Get-VHDLVariables #> [CmdletBinding()] param( - [bool]$VHDL93 = $false, - [bool]$VHDL2008 = $true + [switch]$VHDL93 = $false, + [switch]$VHDL2008 = $true ) if ($VHDL93) -- cgit v1.2.3