cmpmain: fix link(msvc) arguments bug in linker-ar

This commit is contained in:
Yuguo Zhang 2020-02-10 13:17:18 +08:00
parent b85d628955
commit 2532262c0a

View file

@ -165,7 +165,7 @@ the environment variable TMPDIR to a different value." template))
:if-does-not-exist :create :if-exists :supersede)
(format f "/OUT:~A ~A ~{~&\"~A\"~}"
output-name o-name ld-flags))
(safe-run-program "link" '("-lib -nologo" "@static_lib.tmp")))
(safe-run-program "link" '("-lib" "-nologo" "@static_lib.tmp")))
(when (probe-file "static_lib.tmp")
(cmp-delete-file "static_lib.tmp"))))