|
- # E04-S04: build the control-flow emitter fixture.
- [CmdletBinding()]
- param()
-
- $ErrorActionPreference = "Stop"
- $project = Split-Path $PSScriptRoot -Parent
- Import-Module (Join-Path $PSScriptRoot "lib\Nova128Test.psm1") -Force
-
- $out = Join-Path $project "build\control-test"
- $link = Invoke-Nova128Link -Name "control-test" -BuildDir $out `
- -Config (Join-Path $project "cfg\compiler.cfg") -Sources @(
- (Join-Path $project "src\compiler\codegen.s"),
- (Join-Path $project "src\compiler\flow.s"),
- (Join-Path $project "src\runtime\frames.s"),
- (Join-Path $project "tests\codegen\control-test.s"))
-
- Write-Host ("built {0}" -f $link.Program)
|