From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 71687210F16CC for ; Mon, 18 Jun 2018 10:35:01 -0700 (PDT) Received: by mail-wm0-x241.google.com with SMTP id x6-v6so15406271wmc.3 for ; Mon, 18 Jun 2018 10:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=r6GEDqKskMb+ZuBokd0BWTVZZMKnGmD1xfwLDN6RTH8=; b=MUkeIoughqfOvDihGP6Y2kBC4K+Ij7Y7p+x4hGiGQ1ZuHoGp/Dz1CTbHYNfi1JrZIP lMtLSaYQ01IlNrtF88EetAFktHD25EvzZfonZw9GC5RjQliXYO80WcGlvxqITKKCy1qA XBMk6JHBM7nP2o3Wdney5zndXn4HvYi/9OEi4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=r6GEDqKskMb+ZuBokd0BWTVZZMKnGmD1xfwLDN6RTH8=; b=qJkOgMV7f+F4t5RFOAYBf3T9w5N/reBSbgVKb+VsAv41S8asgCKR1tiGsl4WhGkA/Z HDhiAZiaEMIB9HDd3cRp9BV9fFFii2XdfmjaunheLWap8RbObriExKTDd5mazs1S16Ml bI3HTF/VROj0fwcCh3YuoXlUnUdh/UHAnnf1W8vOps6gVEfX5WM3DfO/31WWUNI6cfTJ eab2lqzFlyahx6HcIth1W5ljSePFY22ZRWEb/k6Ec90B9VZNCsTYxNhCsQ82J8WU108+ n6iOb3CMck3BKU3ab72Rml3OokKvpS3Pj9sPwGV2PuvrZLnrlZIWXgxCsxHWlBLu00A0 ZC0g== X-Gm-Message-State: APt69E17giuQODz+oID2oiC2b9mvehIlpm+AZyytPSJSH1pOlcyfLKlQ 77wtjGk0mWVQvETmXt04AZiHg28yxOw= X-Google-Smtp-Source: ADUXVKK3881TRuIbmbwFdI8FrYaZyWWYI0anuoEOUT+j4PlQvvaVAPCHOv3qIeOllYuA+BGb0JOePA== X-Received: by 2002:a1c:d509:: with SMTP id m9-v6mr9848342wmg.69.1529343299818; Mon, 18 Jun 2018 10:34:59 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:50d8:cb10:b6d:abf0]) by smtp.gmail.com with ESMTPSA id n71-v6sm12294344wmi.14.2018.06.18.10.34.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 10:34:59 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org Cc: leif.lindholm@linaro.org, liming.gao@intel.com, yonghong.zhu@intel.com, Ard Biesheuvel Date: Mon, 18 Jun 2018 19:34:56 +0200 Message-Id: <20180618173456.18050-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Subject: [PATCH] BaseTools/tools_def CLANG35: add NOOPT build target X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2018 17:35:01 -0000 Create the missing NOOPT target for CLANG35 (which is ARM and AARCH64 only), and align it with the other toolchains: NOOPT has optimizations disabled entirely (for source level debugging), DEBUG has some -O1 enabled just like CLANG38. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- BaseTools/Conf/tools_def.template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template index ab57f9c706e3..11a79029b890 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -5675,8 +5675,9 @@ DEFINE CLANG35_AARCH64_CC_FLAGS = DEF(GCC_AARCH64_CC_FLAGS) DEF(CLANG35_AARCH64 *_CLANG35_ARM_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS) DEF(CLANG35_ARM_TARGET) *_CLANG35_ARM_CC_XIPFLAGS = DEF(GCC_ARM_CC_XIPFLAGS) - DEBUG_CLANG35_ARM_CC_FLAGS = DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -O0 + DEBUG_CLANG35_ARM_CC_FLAGS = DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -O1 RELEASE_CLANG35_ARM_CC_FLAGS = DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -Oz + NOOPT_CLANG35_ARM_CC_FLAGS = DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -O0 ################## # CLANG35 AARCH64 definitions @@ -5697,8 +5698,9 @@ RELEASE_CLANG35_ARM_CC_FLAGS = DEF(CLANG35_ARM_CC_FLAGS) $(ARCHCC_FLAGS) $(P *_CLANG35_AARCH64_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS) DEF(CLANG35_AARCH64_TARGET) *_CLANG35_AARCH64_CC_XIPFLAGS = DEF(GCC_AARCH64_CC_XIPFLAGS) - DEBUG_CLANG35_AARCH64_CC_FLAGS = DEF(CLANG35_AARCH64_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -O0 + DEBUG_CLANG35_AARCH64_CC_FLAGS = DEF(CLANG35_AARCH64_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -O1 RELEASE_CLANG35_AARCH64_CC_FLAGS = DEF(CLANG35_AARCH64_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -Oz + NOOPT_CLANG35_AARCH64_CC_FLAGS = DEF(CLANG35_AARCH64_CC_FLAGS) $(ARCHCC_FLAGS) $(PLATFORM_FLAGS) -O0 #################################################################################### # -- 2.17.1