~ chicken-core (chicken-5) 91d56ee4be941fb0b63b9d2f60b57dd2660c451f
commit 91d56ee4be941fb0b63b9d2f60b57dd2660c451f Author: Mario Domenech Goulart <mario.goulart@gmail.com> AuthorDate: Thu Aug 23 16:38:24 2012 -0300 Commit: Mario Domenech Goulart <mario.goulart@gmail.com> CommitDate: Thu Aug 23 16:38:24 2012 -0300 csc.scm: properly handle -output-file This commit contains the code suggested by Felix (see http://lists.nongnu.org/archive/html/chicken-hackers/2012-08/msg00045.html) This fixes #903 diff --git a/NEWS b/NEWS index a8ce84eb..efe430e4 100644 --- a/NEWS +++ b/NEWS @@ -166,6 +166,7 @@ could expose C-Compiler bugs, depending on the compiler version (thanks to Sven Hartrumpf for pointing this out). - "-rpath" is ignored on OS X (thanks to Kon Lovett). + - Fixed handling of "-output-file" (it was being ignored) - "chicken-install" - Added option "-override", which allows retrieving extension- versions from a file - this may be useful to ensure specific diff --git a/csc.scm b/csc.scm index 7aca745c..5c499721 100644 --- a/csc.scm +++ b/csc.scm @@ -147,7 +147,7 @@ -no-procedure-checks-for-toplevel-bindings)) (define-constant complex-options - '(-debug -output-file -heap-size -nursery -stack-size -compiler -unit -uses -keyword-style + '(-debug -heap-size -nursery -stack-size -compiler -unit -uses -keyword-style -optimize-level -include-path -database-size -extend -prelude -postlude -prologue -epilogue -inline-limit -profile-name -emit-inline-file -types -emit-type-file @@ -666,7 +666,7 @@ EOF (when osx (set! link-options (cons* "-framework" (car rest) link-options)) ) (set! rest (cdr rest)) ] - [(-o) + [(-o -output-file) (check s rest) (let ([fn (car rest)]) (set! rest (cdr rest))Trap