aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xiclm7
1 files changed, 6 insertions, 1 deletions
diff --git a/iclm b/iclm
index 075b53d..db44775 100755
--- a/iclm
+++ b/iclm
@@ -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."