From f77e6de9360f0ac7a1299a907d1aaff7ccc6b546 Mon Sep 17 00:00:00 2001 From: g4bor k0vacs Date: Wed, 29 Mar 2017 17:01:22 +0200 Subject: [PATCH] Avoid regexp for comparing CONFIG_DISABLE_BITCODE value --- config/20-ios-tvos-cross.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/20-ios-tvos-cross.conf b/config/20-ios-tvos-cross.conf index 4384061..f2654b5 100644 --- a/config/20-ios-tvos-cross.conf +++ b/config/20-ios-tvos-cross.conf @@ -9,7 +9,7 @@ "ios-tvos-cross-base" => { template => 1, cflags => combine('-isysroot $(CROSS_TOP)/SDKs/$(CROSS_SDK) -fno-common', - sub { ((!defined($ENV{'CONFIG_DISABLE_BITCODE'}) || $ENV{'CONFIG_DISABLE_BITCODE'} !~ /true/) && defined($ENV{'SDKVERSION'}) && $ENV{'SDKVERSION'} =~ /^(9|[1-9][0-9]+)\./ && $disabled{shared}) + sub { ((!defined($ENV{'CONFIG_DISABLE_BITCODE'}) || $ENV{'CONFIG_DISABLE_BITCODE'} ne 'true') && defined($ENV{'SDKVERSION'}) && $ENV{'SDKVERSION'} =~ /^(9|[1-9][0-9]+)\./ && $disabled{shared}) ? '-fembed-bitcode' : (); }, ), },