]> granicus.if.org Git - clang/commit
For Darwin, do not let -mcpu override the -arch option. <rdar://11059238>
authorBob Wilson <bob.wilson@apple.com>
Wed, 21 Mar 2012 16:31:37 +0000 (16:31 +0000)
committerBob Wilson <bob.wilson@apple.com>
Wed, 21 Mar 2012 16:31:37 +0000 (16:31 +0000)
commit677a35b628c8a9f0cef9277dbb78e6e8509d13e4
tree06d63e8b8a42fa1f6467ec24c38814b87dc3e5f0
parent4e825dfc1260163564ae0f072089c4411b39e2e5
For Darwin, do not let -mcpu override the -arch option.  <rdar://11059238>

On Darwin the architecture and the corresponding Mach-O slice is typically
specified with -arch.  If not, it defaults to the current host architecture.
Do not use -mcpu to override the -arch value.  This is only an issue when
people need to use specialized code for a non-default CPU (hopefully guarded
by run-time checks to detect the current processor).  The -mcpu option is
still used for the -target-cpu option to clang, but this patch causes it to
not be used to set the architecture in the target triple.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153197 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChain.cpp