From cebe9ff64f5d4b2da3331483a22d73712014df51 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Wed, 18 Dec 2019 16:49:34 +0200 Subject: don't run objective-c tests if gnustep config is not available --- test/ragel.d/gentests.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/ragel.d/gentests.sh b/test/ragel.d/gentests.sh index 57c54a91..941ef448 100644 --- a/test/ragel.d/gentests.sh +++ b/test/ragel.d/gentests.sh @@ -107,6 +107,11 @@ ocaml_compiler="@OCAML_BIN@" rust_compiler="@RUST_BIN@" crack_interpreter="@CRACK_BIN@" julia_interpreter="@JULIA_BIN@" +gnustep_config="@GNUSTEP_CONFIG@" + +if [ -z "$gnustep_config" ]; then + objc_compiler="" +fi function test_error { @@ -183,7 +188,11 @@ function lang_opts() interpreted=false compiler=$objc_compiler host_ragel=$RAGEL_BIN - flags="`gnustep-config --objc-flags`" + if [ -z "$gnustep_config" ]; then + flags="" + else + flags="`$gnustep_config --objc-flags`" + fi libs="-lobjc -lgnustep-base" prohibit_flags="" ;; -- cgit v1.2.1