From d453502d371bfada52293fff022406f15f03490c Mon Sep 17 00:00:00 2001 From: Karsten Sperling <113487422+ksperling-apple@users.noreply.github.com> Date: Wed, 13 Sep 2023 12:52:19 +1200 Subject: [PATCH] Darwin: set is_debug=false for Release builds (#29176) --- src/darwin/Framework/chip_xcode_build_connector.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/darwin/Framework/chip_xcode_build_connector.sh b/src/darwin/Framework/chip_xcode_build_connector.sh index 2127313659614c..120496c146e2c0 100755 --- a/src/darwin/Framework/chip_xcode_build_connector.sh +++ b/src/darwin/Framework/chip_xcode_build_connector.sh @@ -107,7 +107,10 @@ declare -a args=( "mac_deployment_target=\"$LLVM_TARGET_TRIPLE_OS_VERSION$LLVM_TARGET_TRIPLE_SUFFIX\"" ) -[[ $CONFIGURATION == Debug ]] && args+=('is_debug=true') +case "$CONFIGURATION" in + Debug) args+=('is_debug=true') ;; + Release) args+=('is_debug=false') ;; +esac [[ $PLATFORM_FAMILY_NAME != macOS ]] && { args+=(