From c294648a07204dcda35938a8a6d94bed32f0bf98 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Sun, 1 Mar 2026 08:26:53 +0100 Subject: [PATCH] windows build --- build.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.ps1 b/build.ps1 index a2e5c38..f59a19f 100644 --- a/build.ps1 +++ b/build.ps1 @@ -20,15 +20,15 @@ $msvcVersion = $latestVersionFolder.Name # Copy std.ixx to the build directory $sourceFilePath = Join-Path -Path $directoryPath -ChildPath "$msvcVersion\modules\std.ixx" $destinationFilePath = ".\build\std.cppm" -Copy-Item -Path $sourceFilePath /Destination $destinationFilePath +Copy-Item -Path $sourceFilePath -Destination $destinationFilePath $vulkanBasePath = "C:\VulkanSDK" # Get all folders (assumes version format like 14.50.35717) -$folders = Get-ChildItem -Path $vulkanBasePath /Directory +$folders = Get-ChildItem -Path $vulkanBasePath -Directory # Sort the folders by version and select the latest one -$latestVulkanVersion = $folders | Sort-Object { [Version]$_.Name } /Descending | Select-Object -First 1 +$latestVulkanVersion = $folders | Sort-Object { [Version]$_.Name } -Descending | Select-Object -First 1 # Store the latest version folder name and combine it with the base path to get the full path to Include $vulkanSDKPath = Join-Path -Path $vulkanBasePath -ChildPath (Join-Path -Path $latestVulkanVersion.Name -ChildPath "Include")