llvm-project/lld/unittests
Nick Kledzik 635f9c7158 [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
2014-09-04 20:08:30 +00:00
..
CoreTests Initial set of Makefiles 2014-06-04 09:54:07 +00:00
DriverTests [mach-o] Let darwin driver infer arch from .o files if -arch not used. 2014-09-04 20:08:30 +00:00
MachOTests Update for llvm api change. 2014-07-06 17:43:22 +00:00
CMakeLists.txt Supoort mach-o encoded in yaml. 2013-10-08 00:43:34 +00:00
Makefile Initial set of Makefiles 2014-06-04 09:54:07 +00:00