diff options
author | Dmitry Arkhipenko <36101416+dkgitdev@users.noreply.github.com> | 2023-02-25 13:47:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-25 11:47:19 +0100 |
commit | b2edfe7a02f49f07eb9fcf71cd500215725c217e (patch) | |
tree | f14e5ced9fda9b95499ca33eb42c042da4670b71 /lib/pure | |
parent | d4782c9e42ff6cee9f674a376b1595583e08c2a3 (diff) | |
download | Nim-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.nim | 4 |
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: |