mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
Fixes Compilation error with --app:lib (#19965)
Fixes Compilation error with --app:lib when a module tries to pull os.paramStr on posix by throwing a runtime exception instead. More details here: #19964
This commit is contained in:
@@ -2939,7 +2939,7 @@ elif defined(genode):
|
||||
|
||||
proc paramCount*(): int =
|
||||
raise newException(OSError, "paramCount is not implemented on Genode")
|
||||
elif weirdTarget:
|
||||
elif weirdTarget or (defined(posix) and appType == "lib"):
|
||||
proc paramStr*(i: int): string {.tags: [ReadIOEffect].} =
|
||||
raise newException(OSError, "paramStr is not implemented on current platform")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user