From e4ed7ca996ba5bb1be7b877c4c53ef2a5fb534f5 Mon Sep 17 00:00:00 2001 From: Muhammad Omair Javaid Date: Tue, 7 Jun 2022 12:09:13 +0400 Subject: [PATCH] [LLDB] Avoid using -fno-builtin for building API tests This patch removes use of -fno-builtin flag for building LLDB API tests. LLDB API tests are built using Makefile.rules where we were using -fno-builtin flag to avoid gcc intrinsic optimization conflicting with Android runtime in past. Now that we no longer use gcc for building testsuite and compiling LLDB API tests on AArch64/Windows require clang to optimize certain calls like _setjmp to setjmpex as former is not implemented by AArch64 windows runtime. --- lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index 6917d73130c4..9023128067f5 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -214,7 +214,7 @@ endif DEBUG_INFO_FLAG ?= -g -CFLAGS ?= $(DEBUG_INFO_FLAG) -O0 -fno-builtin +CFLAGS ?= $(DEBUG_INFO_FLAG) -O0 ifeq "$(OS)" "Darwin" ifneq "$(SDKROOT)" ""