summaryrefslogtreecommitdiff
path: root/libraries/vendors/compile-osvvm.ps1
diff options
context:
space:
mode:
authorTristan Gingold2015-12-03 04:48:15 +0100
committerTristan Gingold2015-12-03 04:48:15 +0100
commit6956cc80516f1dfc74a06a75b068437afba036ed (patch)
tree53dd811d0904efe594ec1cfe9692a224bde4456c /libraries/vendors/compile-osvvm.ps1
parentf7b737b52f57a46c2f96ad87ee50741abc415ed3 (diff)
downloadghdl-6956cc80516f1dfc74a06a75b068437afba036ed.tar.gz
ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.tar.bz2
ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.zip
Add vendor specific library compile scripts for linux.
Merge branch from Paebbels.
Diffstat (limited to 'libraries/vendors/compile-osvvm.ps1')
-rw-r--r--libraries/vendors/compile-osvvm.ps114
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