@@ -33,18 +33,23 @@ public static class AutolithWindowsPath
3333}
3434'@
3535
36- function ConvertTo-AutolithSbclCorePath {
36+ function ConvertTo-AutolithSbclPath {
3737 param ([Parameter (Mandatory = $true )][string ]$Path )
38- $parent = Split-Path - Parent $Path
39- $leaf = Split-Path - Leaf $Path
40- $shortParent = [AutolithWindowsPath ]::GetShortPath($parent )
41- $runtimePath = Join-Path $shortParent $leaf
38+ $runtimePath = [AutolithWindowsPath ]::GetShortPath($Path )
4239 if ($runtimePath -match ' [^\x00-\x7F]' ) {
43- throw " Autolith cannot obtain an ASCII Windows path for SBCL core images below $parent ."
40+ throw " Autolith cannot obtain an ASCII Windows path for SBCL from $Path ."
4441 }
4542 return $runtimePath
4643}
47- $releaseRoot = Split-Path - Parent $PSScriptRoot
44+
45+ function ConvertTo-AutolithSbclCorePath {
46+ param ([Parameter (Mandatory = $true )][string ]$Path )
47+ $parent = Split-Path - Parent $Path
48+ $leaf = Split-Path - Leaf $Path
49+ $shortParent = ConvertTo-AutolithSbclPath $parent
50+ return Join-Path $shortParent $leaf
51+ }
52+ $releaseRoot = ConvertTo-AutolithSbclPath (Split-Path - Parent $PSScriptRoot )
4853$sourceRoot = Join-Path $releaseRoot ' libexec\autolith'
4954$runtime = Join-Path $releaseRoot ' runtime\sbcl.exe'
5055$runtimeSource = Join-Path $releaseRoot ' libexec\sbcl-source'
@@ -59,8 +64,8 @@ $native = Join-Path $releaseRoot 'native'
5964$fff = Get-ChildItem - LiteralPath $native - Filter ' *fff*.dll' - File | Select-Object - First 1
6065$color = Get-ChildItem - LiteralPath $native - Filter ' *colorlisp*.dll' - File | Select-Object - First 1
6166if (-not $fff -or -not $color ) { throw ' Autolith release failed: bundled native libraries are missing.' }
62- $env: AUTOLITH_FFF_LIBRARY = $fff.FullName
63- $env: COLORLISP_NATIVE_LIBRARY = $color.FullName
67+ $env: AUTOLITH_FFF_LIBRARY = ConvertTo-AutolithSbclPath $fff.FullName
68+ $env: COLORLISP_NATIVE_LIBRARY = ConvertTo-AutolithSbclPath $color.FullName
6469$env: PATH = " $native ;$env: PATH "
6570$env: GIT_OPTIONAL_LOCKS = ' 0'
6671if ($args.Count -gt 0 -and $args [0 ] -eq ' --autolith-release-probe' ) {
0 commit comments