#define __weak_extern(sym) /* NOTHING */\r
#define __weak_reference(sym) /* NOTHING */\r
\r
- #if !defined(__CC_ARM)\r
- #define __warn_references(sym,msg) \\r
- __asm(".stabs \"" msg "\",30,0,0,0"); \\r
- __asm(".stabs \"_" #sym "\",1,0,0,0");\r
- #else\r
+ #if defined(__CC_ARM) || defined(__APPLE__)\r
#define __warn_references(sym,msg)\r
+ #else\r
+ #define __warn_references(sym,msg) \\r
+ __asm(".stabs \"" msg "\",30,0,0,0"); \\r
+ __asm(".stabs \"_" #sym "\",1,0,0,0");\r
#endif\r
#endif\r
#else /* __STDC__ */\r
!ifndef $(EMULATE)\r
# These Build Options are used when building the Standard Libraries to be run\r
# on real hardware.\r
- INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE\r
- MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE\r
- GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE\r
- RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm\r
- ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length\r
+ INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE\r
+ MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE\r
+ GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE\r
+ RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm\r
+ ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length\r
+ XCODE:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized\r
\r
!else\r
# The Build Options, below, are only used when building the Standard Libraries\r
# to be run under an emulation environment.\r
# They disable optimization which facillitates debugging under the Emulation environment.\r
- INTEL:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE\r
- MSFT:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE\r
- GCC:*_*_IA32_CC_FLAGS = -O0 -DUEFI_C_SOURCE\r
- RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm\r
- ARMGCC:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length\r
+ INTEL:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE\r
+ MSFT:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE\r
+ GCC:*_*_IA32_CC_FLAGS = -O0 -DUEFI_C_SOURCE\r
+ RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm\r
+ ARMGCC:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length\r
+ XCODE:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized\r
!endif\r