[PATCH] Canonicalise Windows target triple spellings
Saleem Abdulrasool
abdulras at fb.com
Tue Mar 4 11:53:42 PST 2014
Hi majnemer, rnk, chandlerc,
Construct a uniform Windows target triple nomenclature which is congruent to the
Linux counterpart. The old triples are normalised to the new canonical form.
This cleans up the long-standing issue of odd naming for various Windows
environments.
There are four different environments on Windows:
MSVC: The MS ABI, MSVCRT environment as defined by Microsoft
GNU: The MinGW32/MinGW32-W64 environment which uses MSVCRT and auxiliary libraries
Itanium: The MSVCRT environment + libc++ built with Itanium ABI
Cygnus: The Cygwin environment which uses custom libraries for everything
The following spellings are now written as:
i686-pc-win32 => i686-pc-windows-msvc
i686-pc-mingw32 => i686-pc-windows-gnu
i686-pc-cygwin => i686-pc-windows-cygnus
This should be sufficiently flexible to allow us to target other windows
environments in the future as necessary.
http://llvm-reviews.chandlerc.com/D2947
Files:
include/llvm/ADT/Triple.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/MC/MCObjectFileInfo.cpp
lib/Support/Triple.cpp
lib/Target/TargetLibraryInfo.cpp
lib/Target/X86/X86Subtarget.h
unittests/ADT/TripleTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2947.1.patch
Type: text/x-patch
Size: 10077 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140304/c63e2300/attachment.bin>
More information about the llvm-commits
mailing list