diff options
Diffstat (limited to 'libraries/vendors/compile-osvvm.ps1')
-rw-r--r-- | libraries/vendors/compile-osvvm.ps1 | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libraries/vendors/compile-osvvm.ps1 b/libraries/vendors/compile-osvvm.ps1 index e1a559b..7f271c2 100644 --- a/libraries/vendors/compile-osvvm.ps1 +++ b/libraries/vendors/compile-osvvm.ps1 @@ -49,9 +49,17 @@ param( [switch]$Clean = $false,
# Skip warning messages. (Show errors only.)
- [switch]$SuppressWarnings = $false
+ [switch]$SuppressWarnings = $false,
+
+ # Show the embedded help page(s)
+ [switch]$Help = $false
)
+if ($Help)
+{ Get-Help $MYINVOCATION.InvocationName -Detailed
+ return
+}
+
# ---------------------------------------------
# save working directory
$WorkingDir = Get-Location
@@ -107,7 +115,7 @@ if (-not $StopCompiling) "$SourceDir\OsvvmContext.vhd")
foreach ($File in $Files)
{ Write-Host "Analyzing package '$File'" -ForegroundColor Cyan
- $InvokeExpr = "ghdl.exe " + ($Options -join " ") + " --work=simprim " + $File + " 2>&1"
+ $InvokeExpr = "ghdl.exe " + ($Options -join " ") + " --work=osvvm " + $File + " 2>&1"
$ErrorRecordFound = Invoke-Expression $InvokeExpr | Restore-NativeCommandStream | Write-ColoredGHDLLine $SuppressWarnings
$StopCompiling = ($LastExitCode -ne 0)
if ($StopCompiling) { break }
@@ -115,7 +123,7 @@ if (-not $StopCompiling) }
Write-Host "--------------------------------------------------------------------------------"
-Write-Host "Compiling OSVVM libraries " -NoNewline
+Write-Host "Compiling OSVVM library " -NoNewline
if ($StopCompiling)
{ Write-Host "[FAILED]" -ForegroundColor Red }
else
|