ccc: Darwin/CC1: Hardcode (for now) some -m options to match gcc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-01-13 04:51:51 +00:00
Родитель 1f73ecb228
Коммит 11505a90aa
1 изменённых файлов: 19 добавлений и 4 удалений

Просмотреть файл

@ -204,10 +204,10 @@ class Darwin_X86_CompileTool(Tool):
# FIXME: As with ld, something else is going on. My best guess # FIXME: As with ld, something else is going on. My best guess
# is gcc is faking an -mmacosx-version-min # is gcc is faking an -mmacosx-version-min
# somewhere. Investigate. # somewhere. Investigate.
if (not arglist.getLastArg(arglist.parser.m_macosxVersionMinOption) and # if (not arglist.getLastArg(arglist.parser.m_macosxVersionMinOption) and
not arglist.getLastArg(arglist.parser.m_iphoneosVersionMinOption)): # not arglist.getLastArg(arglist.parser.m_iphoneosVersionMinOption)):
cmd_args.append('-mmacosx-version-min=' + # cmd_args.append('-mmacosx-version-min=' +
self.toolChain.getMacosxVersionMin()) # self.toolChain.getMacosxVersionMin())
# FIXME: Remove faltivec # FIXME: Remove faltivec
# FIXME: Remove mno-fused-madd # FIXME: Remove mno-fused-madd
@ -384,6 +384,21 @@ class Darwin_X86_CompileTool(Tool):
cmd_args.append(self.getBaseInputName(inputs, arglist)) cmd_args.append(self.getBaseInputName(inputs, arglist))
# FIXME: d* # FIXME: d*
# FIXME: Figure out where these are coming from and
# dehardcode.
arg = arglist.getLastArg(arglist.parser.m_macosxVersionMinOption)
if arg:
cmd_args.extend(arglist.render(arg))
else:
cmd_args.append('-mmacosx-version-min=' +
self.toolChain.getMacosxVersionMin())
if arglist.getValue(arch) == 'x86_64':
cmd_args.append('-m64')
else:
cmd_args.append('-m32')
cmd_args.append('-mtune=core2')
# FIXME: m* # FIXME: m*
# FIXME: a* # FIXME: a*