diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-02-08 13:26:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-08 22:26:09 +0100 |
commit | ba64d0c8ab93c7f38b87567059cb2b66747d022c (patch) | |
tree | 2120ba29d3ecdd84303544a3c5552cc91d802f77 /compiler | |
parent | e211a2a9f6f9a182f7fe48153fd37de6ddef9bf4 (diff) | |
download | Nim-ba64d0c8ab93c7f38b87567059cb2b66747d022c.tar.gz |
fix #16947: `--app:staticlib -o:lib` now first removes lib (#16948)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/extccomp.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index cf6cd8d9d..6341cddd9 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -662,6 +662,7 @@ proc addExternalFileToCompile*(conf: ConfigRef; filename: AbsoluteFile) = proc getLinkCmd(conf: ConfigRef; output: AbsoluteFile, objfiles: string, isDllBuild: bool): string = if optGenStaticLib in conf.globalOptions: + removeFile output # fixes: bug #16947 result = CC[conf.cCompiler].buildLib % ["libfile", quoteShell(output), "objfiles", objfiles] else: |