aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-19 02:41:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-19 02:41:16 +0000
commitfa538e724f6dc04f01c092e5ccccb4d43e5f8751 (patch)
tree1c1dc9160000a7681585b4e074662f82cbd31b8c
parentd3f2c10f881311831a84114179342ff4db55e0c3 (diff)
ccc: Pass '-g' through to clang. Handle -weak_framework.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57779 91177308-0d34-0410-b5e6-96231b3b80d8
-rwxr-xr-xutils/ccc7
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/ccc b/utils/ccc
index 0dea3e7f13..f0821ca524 100755
--- a/utils/ccc
+++ b/utils/ccc
@@ -255,6 +255,12 @@ def main(args):
if argkey in ('-std', '-mmacosx-version-min'):
compile_opts.append(arg)
+ # Special case debug options to only pass -g to clang. This is
+ # wrong.
+ if arg in ('-g', '-gdwarf-2'):
+ compile_opts.append('-g')
+ link_opts.append(arg)
+
# Options with one argument that should pass through to compiler
if arg in [ '-include', '-idirafter', '-iprefix',
'-iquote', '-isystem', '-iwithprefix',
@@ -271,6 +277,7 @@ def main(args):
# Options with one argument that should pass through
if arg in ('-framework', '-multiply_defined', '-bundle_loader',
+ '-weak_framework',
'-e', '-install_name',
'-unexported_symbols_list', '-exported_symbols_list',
'-compatibility_version', '-current_version', '-init',