diff options
-rwxr-xr-x | iclm | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -60,12 +60,17 @@ proc tryCompile { } { spawn clm {*}$args {*}$argv expect { - -re "Error \\\[.*\\\]: (.*)\.dcl could not be imported" { + -re "Error .*?: (.*)\.dcl could not be imported" { tryImport $expect_out(1,string) return } -re "Can't find (.*)\.icl" { tryImport $expect_out(1,string) return + } -re "dynamic used but support for dynamics not enabled|TC class undefined" { + set args "$args -dynamics" + feedback "info" "Using -dynamics." + tryCompile + return } "Nonrepresentable section on output" { set args "$args -l -no-pie" feedback "info" "Using -l -no-pie." |