aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/FormatString.cpp
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2014-09-04 20:08:30 +0000
committerNick Kledzik <kledzik@apple.com>2014-09-04 20:08:30 +0000
commit635f9c71589dd2cb80257e29aa02c5e5dd03742b (patch)
treeb0a68779a7099d805d0187d8ae9bd872da0ad3c6 /clang/lib/Analysis/FormatString.cpp
parent9b3e3dfc54d9823074407323b0a60ebd223cd721 (diff)
downloadllvm-635f9c71589dd2cb80257e29aa02c5e5dd03742b.zip
llvm-635f9c71589dd2cb80257e29aa02c5e5dd03742b.tar.gz
llvm-635f9c71589dd2cb80257e29aa02c5e5dd03742b.tar.bz2
[mach-o] Let darwin driver infer arch from .o files if -arch not used.
Mach-O has a "fat" (or "universal") variant where the same contents built for different architectures are concatenated into one file with a table-of-contents header at the start. But this leaves a dilemma for the linker - which architecture to use. Normally, the linker command line -arch is used to force which slice of any fat files are used. The clang compiler always passes -arch to the linker when invoking it. But some Makefiles invoke the linker directly and don’t specify the -arch option. For those cases, the linker scans all input files in command line order and finds the first non-fat object file. Whatever architecture it is becomes the architecture for the link. llvm-svn: 217189
Diffstat (limited to 'clang/lib/Analysis/FormatString.cpp')
0 files changed, 0 insertions, 0 deletions