mescc: Support -l none (linking without libc).

* module/mescc/mescc.scm (mescc:link): Support -l none.
This commit is contained in:
Jan Nieuwenhuizen 2018-08-15 17:46:03 +02:00
parent 7318e9079e
commit 25c4acef82
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
1 changed files with 1 additions and 0 deletions

View File

@ -121,6 +121,7 @@
(list (infos->hex2 options hex2-file-name infos)))))
(libraries (filter-map (multi-opt 'library) options))
(libraries (if (pair? libraries) libraries '("c")))
(libraries (if (equal? libraries '("none")) '() libraries))
(hex2-libraries (map (cut find-library options ".o" <>) libraries))
(hex2-files (append hex2-files hex2-libraries))
(S-files (append S-files (map (cut find-library options ".S" <>) libraries)))