diff options
Diffstat (limited to 'nim/extccomp.pas')
-rwxr-xr-x | nim/extccomp.pas | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nim/extccomp.pas b/nim/extccomp.pas index aab4febb7..7df3e8748 100755 --- a/nim/extccomp.pas +++ b/nim/extccomp.pas @@ -438,7 +438,7 @@ var begin c := ccompiler; options := compileOptions; - trunk := extractFileTrunk(cfilename); + trunk := splitFile(cfilename).name; if optCDebug in gGlobalOptions then begin key := trunk + '.debug'; if existsConfigVar(key) then @@ -594,15 +594,15 @@ begin if optGenDynLib in gGlobalOptions then begin exefile := format(platform.os[targetOS].dllFrmt, - [extractFileTrunk(projectFile)]); + [splitFile(projectFile).name]); buildDll := cc[c].buildDll; end else begin - exefile := extractFileTrunk(projectFile) +{&} platform.os[targetOS].exeExt; + exefile := splitFile(projectFile).name +{&} platform.os[targetOS].exeExt; buildDll := ''; end; if targetOS = platform.hostOS then - exefile := joinPath(extractDir(projectFile), exefile); + exefile := joinPath(splitFile(projectFile).dir, exefile); exefile := quoteIfContainsWhite(exefile); it := PStrEntry(toLink.head); |