From 6956cc80516f1dfc74a06a75b068437afba036ed Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 3 Dec 2015 04:48:15 +0100 Subject: Add vendor specific library compile scripts for linux. Merge branch from Paebbels. --- libraries/vendors/compile-osvvm.ps1 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'libraries/vendors/compile-osvvm.ps1') 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 -- cgit