Compiler enhancements #2

Merged
alex-eg merged 21 commits from compiler-enhancements into main 2025-08-05 02:05:32 +02:00
Showing only changes of commit 31d0aa574b - Show all commits

View File

@@ -17,6 +17,7 @@
getopt-long getopt-long
regex regex
srfi-1 ; list routines srfi-1 ; list routines
srfi-13 ; string routines
tree) tree)
(define (unkebabify sym) (define (unkebabify sym)
@@ -248,10 +249,7 @@
(cdr (assoc '@ args))) (cdr (assoc '@ args)))
(define (get-c-compiler-args args) (define (get-c-compiler-args args)
(do ((c-args (get-rest-args args) (cdr c-args))) (filter (fn (string-prefix? "-" x)) (get-rest-args args)))
((or (null? c-args)
(char=? #\- (string-ref (car c-args) 0)))
c-args)))
(define (get-input-file args) (define (get-input-file args)
(let ((rest-args (get-rest-args args))) (let ((rest-args (get-rest-args args)))