Re: [Patch V4 10/10] BaseTools/tools_def.template: Add -gdwarf to XCODE5 X64


Liming Gao
 

Reviewed-by: Liming Gao <liming.gao@intel.com>

-----Original Message-----
From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
Michael D Kinney
Sent: Friday, August 16, 2019 10:15 AM
To: devel@edk2.groups.io
Cc: Justen, Jordan L <jordan.l.justen@intel.com>; Ni, Ray <ray.ni@intel.com>;
Andrew Fish <afish@apple.com>
Subject: [edk2-devel] [Patch V4 10/10] BaseTools/tools_def.template: Add -
gdwarf to XCODE5 X64

Add -gdwarf to XCODE5 X64 builds to generate symbols for
source level debug using lldb.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Michael D Kinney <michael.d.kinney@intel.com>
Signed-off-by: Andrew Fish <afish@apple.com>
---
BaseTools/Conf/tools_def.template | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/BaseTools/Conf/tools_def.template
b/BaseTools/Conf/tools_def.template
index 26a2cf604f..8f0e6cb6c2 100755
--- a/BaseTools/Conf/tools_def.template
+++ b/BaseTools/Conf/tools_def.template
@@ -2593,8 +2593,8 @@ RELEASE_XCODE5_X64_ASM_FLAGS = -arch x86_64
*_XCODE5_*_PP_FLAGS = -E -x assembler-with-cpp -include
$(DEST_DIR_DEBUG)/AutoGen.h
*_XCODE5_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE -include
$(DEST_DIR_DEBUG)/$(MODULE_NAME)StrDefs.h

- DEBUG_XCODE5_X64_CC_FLAGS = -target x86_64-pc-win32-macho -c -g -
Os -Wall -Werror -Wextra -include AutoGen.h -funsigned-char -fno-ms-
extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-implicit-float
-mms-bitfields -Wno-unused-parameter -Wno-missing-braces -Wno-missing-
field-initializers -Wno-tautological-compare -Wno-sign-compare -Wno-varargs
-ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -
D NO_MSABI_VA_FUNCS $(PLATFORM_FLAGS)
- NOOPT_XCODE5_X64_CC_FLAGS = -target x86_64-pc-win32-macho -c -g -
O0 -Wall -Werror -Wextra -include AutoGen.h -funsigned-char -fno-ms-
extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-implicit-float
-mms-bitfields -Wno-unused-parameter -Wno-missing-braces -Wno-missing-
field-initializers -Wno-tautological-compare -Wno-sign-compare -Wno-varargs
-ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -
D NO_MSABI_VA_FUNCS $(PLATFORM_FLAGS)
+ DEBUG_XCODE5_X64_CC_FLAGS = -target x86_64-pc-win32-macho -c -g -
gdwarf -Os -Wall -Werror -Wextra -include AutoGen.h -funsigned-char -
fno-ms-extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-
implicit-float -mms-bitfields -Wno-unused-parameter -Wno-missing-braces -
Wno-missing-field-initializers -Wno-tautological-compare -Wno-sign-compare
-Wno-varargs -ftrap-
function=undefined_behavior_has_been_optimized_away_by_clang -D
NO_MSABI_VA_FUNCS $(PLATFORM_FLAGS)
+ NOOPT_XCODE5_X64_CC_FLAGS = -target x86_64-pc-win32-macho -c -g -
gdwarf -O0 -Wall -Werror -Wextra -include AutoGen.h -funsigned-char -
fno-ms-extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-
implicit-float -mms-bitfields -Wno-unused-parameter -Wno-missing-braces -
Wno-missing-field-initializers -Wno-tautological-compare -Wno-sign-compare
-Wno-varargs -ftrap-
function=undefined_behavior_has_been_optimized_away_by_clang -D
NO_MSABI_VA_FUNCS $(PLATFORM_FLAGS)
RELEASE_XCODE5_X64_CC_FLAGS = -target x86_64-pc-win32-macho -c -Os
-Wall -Werror -Wextra -include AutoGen.h -funsigned-char -fno-ms-
extensions -fno-stack-protector -fno-builtin -fshort-wchar -mno-implicit-float
-mms-bitfields -Wno-unused-parameter -Wno-missing-braces -Wno-missing-
field-initializers -Wno-tautological-compare -Wno-sign-compare -Wno-varargs
-Wno-unused-const-variable -ftrap-
function=undefined_behavior_has_been_optimized_away_by_clang -D
NO_MSABI_VA_FUNCS $(PLATFORM_FLAGS)


###########################################################
#########################
--
2.21.0.windows.1


Join devel@edk2.groups.io to automatically receive all group messages.