[cfe-commits] r57779 - /cfe/trunk/utils/ccc

Daniel Dunbar daniel at zuster.org
Sat Oct 18 19:41:16 PDT 2008


Author: ddunbar
Date: Sat Oct 18 21:41:16 2008
New Revision: 57779

URL: http://llvm.org/viewvc/llvm-project?rev=57779&view=rev
Log:
ccc: Pass '-g' through to clang. Handle -weak_framework.

Modified:
    cfe/trunk/utils/ccc

Modified: cfe/trunk/utils/ccc
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc?rev=57779&r1=57778&r2=57779&view=diff

==============================================================================
--- cfe/trunk/utils/ccc (original)
+++ cfe/trunk/utils/ccc Sat Oct 18 21:41:16 2008
@@ -255,6 +255,12 @@
         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 @@
 
         # 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',





More information about the cfe-commits mailing list