From 3c31e716f1f7169223cfebc1ae5d3f164c3060c3 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 17 May 2021 22:05:42 +0200 Subject: Recognize when the iTasks compiler should be used --- iclm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iclm b/iclm index 6465267..cce1a27 100755 --- a/iclm +++ b/iclm @@ -80,9 +80,12 @@ proc tryCompile { } { } -re "Can't find (.*)\.icl" { tryImport $expect_out(1,string) return - } -re "dynamic used but support for dynamics not enabled|TC class undefined" { + } -re "\[Dd\]ynamic used but support for dynamics not enabled|TC class undefined" { tryWithOption "-dynamics" return + } -re ":: expected instead of \\\*|end of definition expected instead of =>" { + tryWithOption "-clc cocl-itasks" + return } "Nonrepresentable section on output" { tryWithOption "-l -no-pie" return -- cgit v1.2.3