From e5b8bd020a1f1fc85150e84f4cbefa23e9519e8c Mon Sep 17 00:00:00 2001
From: James Zern <jzern@google.com>
Date: Mon, 19 May 2014 11:36:12 -0700
Subject: [PATCH] configure.sh: only execute toupper when necessary

speeds up windows configure by ~40%

Change-Id: Ie3138b8fe39ff4c901c35c5d689c1ed12da34866
---
 build/make/configure.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build/make/configure.sh b/build/make/configure.sh
index c07b049786..ad7dc82563 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1284,8 +1284,8 @@ print_config_mk() {
     local makefile=$2
     shift 2
     for cfg; do
-        upname="`toupper $cfg`"
         if enabled $cfg; then
+            upname="`toupper $cfg`"
             echo "${prefix}_${upname}=yes" >> $makefile
         fi
     done
-- 
GitLab