aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-09-22 23:19:08 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-09-22 23:19:08 +0200
commit703253e522b68f7ab739a11befc72377ef0ab526 (patch)
tree9f725988eafe7434e0785fa274c542e083969a83 /scripts
parentb4b25fe5e5d77ba712552acc5edae7c64832d1ca (diff)
downloadghdl-703253e522b68f7ab739a11befc72377ef0ab526.tar.gz
ghdl-703253e522b68f7ab739a11befc72377ef0ab526.tar.bz2
ghdl-703253e522b68f7ab739a11befc72377ef0ab526.zip
Fixed parameter types and how to pass boolean/switch parameters from PoSh script to PoSh script.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/vendors/compile-uvvm.ps12
-rw-r--r--scripts/vendors/compile-xilinx-vivado.ps12
-rw-r--r--scripts/vendors/shared.psm14
3 files changed, 4 insertions, 4 deletions
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)