Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update koharu-dev-and-skip-fixes.patch
  • Loading branch information
louisoes05-png authored Apr 6, 2026
commit e02acd87f57ff30e848fd4b0c4bd87dcaad93316
25 changes: 1 addition & 24 deletions koharu-dev-and-skip-fixes.patch
Original file line number Diff line number Diff line change
Expand Up @@ -195,27 +195,4 @@ index 317f2e0..a5232ca 100644
}
}

@@ -89,14 +90,15 @@ async function setupCl() {

async function dev() {
if (os.type() === 'Windows_NT') {
- // First, try to check if nvcc is available
- await checkNvcc()
- // If not found, try to set up CUDA paths
- .catch(async () => {
- await setupCuda()
- // Check again after setup
- await checkNvcc()
- })
+ if (!(await checkNvcc())) {
+ await setupCuda()
+ .then(checkNvcc)
+ .catch(() => false)
+
+ if (!(await checkNvcc())) {
+ console.warn('NVCC not found, continuing without CUDA toolchain')
+ }
+ }

// Setup cl.exe path
await setupCl()

Loading