]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: Fix BaseTools C compiler flags for Xcode 5
authorAnderw Fish <afish@apple.com>
Thu, 28 Aug 2014 05:13:37 +0000 (05:13 +0000)
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 28 Aug 2014 05:13:37 +0000 (05:13 +0000)
-fno-merge-constants is not supported by clang, and it warns it will turn into
  a hard error in the future.
-Wno-deprecated-declarations removes warnings about obsolete libraries that
  are not secure.
-Wno-self-assign removes warnings from LZMA code.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Anderw Fish <afish@apple.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15938 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/C/Makefiles/header.makefile

index 6895f98c6ee6a8b15a048c17f028b66b6f45b88e..30495877974630a08c68c48e3abee147fbd71b5f 100644 (file)
@@ -41,7 +41,7 @@ endif
 \r
 INCLUDE = $(TOOL_INCLUDE) -I $(MAKEROOT) -I $(MAKEROOT)/Include/Common -I $(MAKEROOT)/Include/ -I $(MAKEROOT)/Include/IndustryStandard -I $(MAKEROOT)/Common/ -I .. -I . $(ARCH_INCLUDE) \r
 CPPFLAGS = $(INCLUDE)\r
-CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -fno-merge-constants -nostdlib -Wall -Werror -c -g\r
+CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-deprecated-declarations -Wno-self-assign -nostdlib -c -g\r
 LFLAGS =\r
 \r
 ifeq ($(ARCH), IA32)\r