diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-12 02:24:21 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-12 02:24:21 +0000 |
commit | ee8cc26f374a9dff0ba9e34fda1bdf3364c5beab (patch) | |
tree | 8cb56c34b925a95f687053887c072f61101b0ffc /tools/ccc/ccclib/Arguments.py | |
parent | ebaae2a3103b443d50444d335ab5ab0ff7680da2 (diff) |
ccc: (Darwin) Pass -ObjC to linker if -ObjC, -ObjC++ or -fobjc is
present.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Arguments.py')
-rw-r--r-- | tools/ccc/ccclib/Arguments.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/ccc/ccclib/Arguments.py b/tools/ccc/ccclib/Arguments.py index 5c5320ffe4..564114f405 100644 --- a/tools/ccc/ccclib/Arguments.py +++ b/tools/ccc/ccclib/Arguments.py @@ -370,10 +370,8 @@ class OptionParser: self.oOption = self.addOption(JoinedOrSeparateOption('-o')) self.xOption = self.addOption(JoinedOrSeparateOption('-x')) - # FIXME: What do these actually do? The documentation is less than - # clear. - self.addOption(FlagOption('-ObjC')) - self.addOption(FlagOption('-ObjC++')) + self.ObjCOption = self.addOption(FlagOption('-ObjC')) + self.ObjCXXOption = self.addOption(FlagOption('-ObjC++')) # FIXME: Weird, gcc claims this here in help but I'm not sure why; # perhaps interaction with preprocessor? Investigate. @@ -559,6 +557,7 @@ class OptionParser: self.addOption(JoinedOption('-g')) self.f_exceptionsOption = self.addOption(FlagOption('-fexceptions')) + self.f_objcOption = self.addOption(FlagOption('-fobjc')) self.f_openmpOption = self.addOption(FlagOption('-fopenmp')) self.f_gnuRuntimeOption = self.addOption(FlagOption('-fgnu-runtime')) self.f_nestedFunctionsOption = self.addOption(FlagOption('-fnested-functions')) |