Do not link to the same object more than once

This commit is contained in:
Justin Ethier 2015-05-15 14:20:26 -04:00
parent 97b8e81682
commit 31637d4439

View file

@ -249,11 +249,13 @@
(program?
(let ((objs-str
(if (tagged-list? 'import (car in-prog))
(apply string-append
(map
(lambda (str)
(string-append " " str " "))
(lib:imports->objs (cdar in-prog))))
(apply
string-append
(delete-duplicates
(map
(lambda (str)
(string-append " " str " "))
(lib:imports->objs (cdar in-prog)))))
"")))
(if (equal? 0
(system