diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-14 20:49:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-14 20:49:29 +0000 |
commit | 3573c0c0b44a1ac8f76a00af1bc75e94ca03d704 (patch) | |
tree | a73b7dbfd0dad96b6848adaf47fbb6f9a76facf7 /tools/ccc/ccclib/Arguments.py | |
parent | 19891b082be53204ec91da31aee902966508c6d8 (diff) |
Add -ffreestanding to suppress the implicit declaration of library builtins like printf and malloc. Fixes PR3586
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/ccc/ccclib/Arguments.py')
-rw-r--r-- | tools/ccc/ccclib/Arguments.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/ccc/ccclib/Arguments.py b/tools/ccc/ccclib/Arguments.py index 18fe9fadda..2e4c2064ea 100644 --- a/tools/ccc/ccclib/Arguments.py +++ b/tools/ccc/ccclib/Arguments.py @@ -787,6 +787,7 @@ class OptionParser: self.f_encodingOption = self.addOption(JoinedOption('-fencoding=', self.fGroup)) self.f_exceptionsOption = self.addOption(FlagOption('-fexceptions', self.Clang_fGroup)) self.f_extdirsOption = self.addOption(JoinedOption('-fextdirs=', self.fGroup)) + self.f_freestandingOption = self.addOption(FlagOption('-ffreestanding', self.Clang_fGroup)) self.f_gnuRuntimeOption = self.addOption(FlagOption('-fgnu-runtime', self.Clang_fGroup)) self.f_indirectVirtualCallsOption = self.addOption(FlagOption('-findirect-virtual-calls', self.fGroup)) self.f_laxVectorConversionsOption = self.addOption(FlagOption('-flax-vector-conversions', self.Clang_fGroup)) |