DLL generation works again
This commit is contained in:
parent
5aa8278f6c
commit
3851ee209c
1 changed files with 11 additions and 8 deletions
|
|
@ -1614,6 +1614,7 @@ when defined(linux) or defined(solaris) or defined(bsd) or defined(aix):
|
||||||
|
|
||||||
when not (defined(windows) or defined(macosx)):
|
when not (defined(windows) or defined(macosx)):
|
||||||
proc getApplHeuristic(): string =
|
proc getApplHeuristic(): string =
|
||||||
|
when defined(paramStr):
|
||||||
result = string(paramStr(0))
|
result = string(paramStr(0))
|
||||||
# POSIX guaranties that this contains the executable
|
# POSIX guaranties that this contains the executable
|
||||||
# as it has been executed by the calling process
|
# as it has been executed by the calling process
|
||||||
|
|
@ -1622,6 +1623,8 @@ when not (defined(windows) or defined(macosx)):
|
||||||
for p in split(string(getEnv("PATH")), {PathSep}):
|
for p in split(string(getEnv("PATH")), {PathSep}):
|
||||||
var x = joinPath(p, result)
|
var x = joinPath(p, result)
|
||||||
if existsFile(x): return x
|
if existsFile(x): return x
|
||||||
|
else:
|
||||||
|
result = ""
|
||||||
|
|
||||||
when defined(macosx):
|
when defined(macosx):
|
||||||
type
|
type
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue