mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
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:
committed by
GitHub
parent
8c3e62e6de
commit
cab3342a2d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user