llvm-6502/projects/sample/autoconf
David Majnemer 5a1a1856a4 Windows: Add support for unicode command lines
Summary:
The MSVCRT deliberately sends main() code-page specific characters.
This isn't too useful to LLVM as we end up converting the arguments to
UTF-16 and subsequently attempt to use the result as, for example, a
file name.  Instead, we need to have the ability to access the Unicode
command line and transform it to UTF-8.

This has the distinct advantage over using the MSVC-specific wmain()
function as our entry point because:
 - It doesn't work on cygwin.
 - It only work on MinGW with caveats and only then on certain versions.
 - We get to keep our entry point as main(). :)

N.B.  This patch includes fixes to other parts of lib/Support/Windows
s.t. we would be able to take advantage of getting the Unicode paths.
E.G.  clang spawning clang -cc1 would want to give it Unicode arguments.

Reviewers: aaron.ballman, Bigcheese, rnk, ruiu

Reviewed By: rnk

CC: llvm-commits, ygao

Differential Revision: http://llvm-reviews.chandlerc.com/D1834

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192069 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-06 20:25:49 +00:00
..
m4 Link with -rdynamic instead of -Wl,-export-dynamic. 2013-08-02 22:51:06 +00:00
AutoRegen.sh projects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that projects/sample is standalone and not tied to the LLVM build setup. 2011-10-18 23:10:47 +00:00
config.guess [PowerPC] Support powerpc64le as a syntax-checking target. 2013-07-26 01:35:43 +00:00
config.sub Add AArch64 as an experimental target. 2013-01-31 12:12:40 +00:00
configure.ac Windows: Add support for unicode command lines 2013-10-06 20:25:49 +00:00
ExportMap.map projects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that projects/sample is standalone and not tied to the LLVM build setup. 2011-10-18 23:10:47 +00:00
install-sh projects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that projects/sample is standalone and not tied to the LLVM build setup. 2011-10-18 23:10:47 +00:00
LICENSE.TXT
ltmain.sh Handle newer cases for freebsd which is approaching 10.0 and not 1.0. 2011-10-26 00:42:12 +00:00
mkinstalldirs projects/sample: Import adapted form of current LLVM autoconf/Makefile setup so that projects/sample is standalone and not tied to the LLVM build setup. 2011-10-18 23:10:47 +00:00