From 0c8a28c0e7b0be835a8d8a2b7a873301a89de4c3 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 17 Oct 2017 09:42:36 +0200 Subject: Resolve #1: -dynamics support --- iclm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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." -- cgit v1.2.3