aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamil Staps2017-10-17 09:42:36 +0200
committerCamil Staps2017-10-17 09:42:36 +0200
commit0c8a28c0e7b0be835a8d8a2b7a873301a89de4c3 (patch)
tree21a1afe8ec9b2daef0dd6974fa22d7f576967c06
parentFix issue with importing modules that occur more than once in tagfile (diff)
Resolve #1: -dynamics support
-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."