summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authorDmitry Arkhipenko <36101416+dkgitdev@users.noreply.github.com>2023-02-25 13:47:19 +0300
committerGitHub <noreply@github.com>2023-02-25 11:47:19 +0100
commitb2edfe7a02f49f07eb9fcf71cd500215725c217e (patch)
treef14e5ced9fda9b95499ca33eb42c042da4670b71 /lib/pure
parentd4782c9e42ff6cee9f674a376b1595583e08c2a3 (diff)
downloadNim-b2edfe7a02f49f07eb9fcf71cd500215725c217e.tar.gz
Fix: nintendoswitch compilation (#21368)
* Fix: make nintendoswitch someGcc, remove symlink support for nintendoswitch, add getAppFilename for nintendoswitch

* Fix: use getApplHeuristic on nintendoswitch
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/os.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index ecceed671..3285c07df 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -254,7 +254,7 @@ proc findExe*(exe: string, followSymlinks: bool = true;
     for ext in extensions:
       var x = addFileExt(x, ext)
       if fileExists(x):
-        when not defined(windows):
+        when not (defined(windows) or defined(nintendoswitch)):
           while followSymlinks: # doubles as if here
             if x.symlinkExists:
               var r = newString(maxSymlinkLen)
@@ -702,6 +702,8 @@ proc getAppFilename*(): string {.rtl, extern: "nos$1", tags: [ReadIOEffect], noW
       result = getApplHaiku()
     elif defined(openbsd):
       result = getApplOpenBsd()
+    elif defined(nintendoswitch):
+      result = ""
 
     # little heuristic that may work on other POSIX-like systems:
     if result.len == 0: