Fix check for Nintendo Switch target (#24652)

This should fix ringabouts comment here:
https://github.com/nim-lang/Nim/pull/24639#issuecomment-2615107496

I wasn't aware that `nintendoswitch` and `posix` would be active at the
same time, so I falsely inverted a check.
This commit is contained in:
Peter Munch-Ellingsen
2025-01-27 16:57:53 +01:00
committed by GitHub
parent 8c3e62e6de
commit cab3342a2d

View File

@@ -255,7 +255,7 @@ when supportedSystem:
for ext in extensions:
var x = addFileExt(x, ext)
if fileExists(x):
when defined(posix): #not (defined(windows) or defined(nintendoswitch)):
when defined(posix) and not defined(nintendoswitch):
while followSymlinks: # doubles as if here
if x.symlinkExists:
var r = newString(maxSymlinkLen)