Skip to content

Commit

Permalink
Fix check for Nintendo Switch target (#24652)
Browse files Browse the repository at this point in the history
This should fix ringabouts comment here:
#24639 (comment)

I wasn't aware that `nintendoswitch` and `posix` would be active at the
same time, so I falsely inverted a check.

(cherry picked from commit cab3342)
  • Loading branch information
PMunch authored and narimiran committed Jan 27, 2025
1 parent c0d50dd commit 123a7ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pure/os.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 123a7ff

Please sign in to comment.