Enable the following CFLAGS in the Xcode project build:

-flimit-debug-info -feliminate-unused-debug-types -Wparentheses

This helps to trim down the debug information size a bit by omitting types
that aren't used.

llvm-svn: 140611
This commit is contained in:
Greg Clayton 2011-09-27 17:26:03 +00:00
parent 04a6e5f82e
commit e241bad92b
1 changed files with 15 additions and 9 deletions

View File

@ -3592,6 +3592,11 @@
LLVM_CONFIGURATION = Release;
LLVM_SOURCE_DIR = "$(SRCROOT)/llvm";
ONLY_ACTIVE_ARCH = YES;
OTHER_CFLAGS = (
"-flimit-debug-info",
"-feliminate-unused-debug-types",
"-Wparentheses",
);
VALID_ARCHS = "x86_64 i386";
};
name = Debug;
@ -3622,6 +3627,11 @@
LLVM_BUILD_DIR_ARCH = "";
LLVM_CONFIGURATION = Release;
LLVM_SOURCE_DIR = "$(SRCROOT)/llvm";
OTHER_CFLAGS = (
"-flimit-debug-info",
"-feliminate-unused-debug-types",
"-Wparentheses",
);
VALID_ARCHS = "x86_64 i386";
};
name = Release;
@ -3696,7 +3706,6 @@
"$(inherited)",
"$(LLVM_BUILD_DIR)",
);
OTHER_CFLAGS = "-Wparentheses";
OTHER_CPLUSPLUSFLAGS = (
"-fno-rtti",
"-Wglobal-constructors",
@ -3748,7 +3757,6 @@
"$(inherited)",
"$(LLVM_BUILD_DIR)",
);
OTHER_CFLAGS = "-Wparentheses";
OTHER_CPLUSPLUSFLAGS = (
"-fno-rtti",
"-Wglobal-constructors",
@ -3794,7 +3802,6 @@
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = "-Wparentheses";
OTHER_CPLUSPLUSFLAGS = (
"-fno-rtti",
"-Wglobal-constructors",
@ -3834,7 +3841,6 @@
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = "-Wparentheses";
OTHER_CPLUSPLUSFLAGS = (
"-fno-rtti",
"-Wglobal-constructors",
@ -3874,7 +3880,6 @@
);
MACH_O_TYPE = staticlib;
MACOSX_DEPLOYMENT_TARGET = 10.6;
OTHER_CFLAGS = "-Wparentheses";
OTHER_CPLUSPLUSFLAGS = (
"-fno-rtti",
"-Wglobal-constructors",
@ -3914,6 +3919,11 @@
LLVM_BUILD_DIR_ARCH = "$(CURRENT_ARCH)/";
LLVM_CONFIGURATION = Release;
LLVM_SOURCE_DIR = "$(SRCROOT)/llvm";
OTHER_CFLAGS = (
"-flimit-debug-info",
"-feliminate-unused-debug-types",
"-Wparentheses",
);
VALID_ARCHS = "x86_64 i386";
};
name = BuildAndIntegration;
@ -3934,7 +3944,6 @@
INFOPLIST_FILE = "lldb-Info.plist";
INSTALL_PATH = /Developer/usr/bin;
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_CFLAGS = "-Wparentheses";
OTHER_LDFLAGS = (
"-sectcreate",
__TEXT,
@ -3979,7 +3988,6 @@
"$(inherited)",
"$(LLVM_BUILD_DIR)",
);
OTHER_CFLAGS = "-Wparentheses";
OTHER_CPLUSPLUSFLAGS = (
"-fno-rtti",
"-Wglobal-constructors",
@ -4096,7 +4104,6 @@
INFOPLIST_FILE = "lldb-Info.plist";
INSTALL_PATH = /Developer/usr/bin;
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_CFLAGS = "-Wparentheses";
OTHER_LDFLAGS = (
"-sectcreate",
__TEXT,
@ -4126,7 +4133,6 @@
INFOPLIST_FILE = "lldb-Info.plist";
INSTALL_PATH = /Developer/usr/bin;
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_CFLAGS = "-Wparentheses";
OTHER_LDFLAGS = (
"-sectcreate",
__TEXT,