mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Do not link to the same object more than once
This commit is contained in:
parent
97b8e81682
commit
31637d4439
1 changed files with 7 additions and 5 deletions
12
cyclone.scm
12
cyclone.scm
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue