summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/mingw.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [MinGW] Predefine UNICODE if -municode is specified during compilationMartin Storsjo2018-08-061-0/+5
| | | | | | Differential Revision: https://reviews.llvm.org/D50199 llvm-svn: 339048
* [GCC] Match a GCC version with a patch suffix without a third version componentMartin Storsjo2018-04-241-0/+7
| | | | | | | | | | | | | | Previously it would only accept a string as a GCC version if it had either two components and no suffix, or three components with an optional suffix. Debian and ubuntu provided mingw compilers have lib/gcc/target entries like "5.3-posix" and "5.3-win32". This doesn't try to make any specific preference between them (other than lexical sorting of the suffix). Differential Revision: https://reviews.llvm.org/D45505 llvm-svn: 330696
* [MinGW] Look for libc++ headers in a triplet prefixed path as wellMartin Storsjo2018-04-121-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | This makes it consistent with libstdc++ and the other default include directories. If these headers are found in both locations and one isn't a symlink to the other, this will cause errors due to libc++ headers having wrapper headers for some standard C headers, wrappers that do #include_next the actual one. If the same libc++ standard C wrapper header exists in more than one include directory before the real system one, the header include guard will stop it from doing another #include_next to pick up the real one, breaking things. As this is a rather uncommon situation, this should be acceptable and toolchain maintainers can adapt accordingly if necessary. Also simplify some of the existing code with a local variable. Differential Revision: https://reviews.llvm.org/D45500 llvm-svn: 329946
* Do not include GCC "resource" directory into the set of built-in include ↵Anton Korobeynikov2017-03-061-12/+0
| | | | | | | | | | paths on MingW. Patch by Mateusz Mikuła. Differential Revision: https://reviews.llvm.org/D29464 llvm-svn: 297005
* Support setting default value for -rtlib at build timeJonas Hahnfeld2016-07-271-7/+7
| | | | | | | | | | | | | | | | | This patch introduces a new cmake variable: CLANG_DEFAULT_RTLIB, thru which we can specify a default value for -rtlib (libgcc or compiler-rt) at build time, just like how we set the default C++ stdlib thru CLANG_DEFAULT_CXX_STDLIB. With these two options, we can configure clang to build binaries on Linux that have no runtime dependence on any gcc libs (libstdc++ or libgcc_s). Patch by Lei Zhang! Differential Revision: https://reviews.llvm.org/D22663 llvm-svn: 276848
* Fix several accidental DOS line endings in source filesDimitry Andric2016-01-031-59/+59
| | | | | | | | | | | | | | | Summary: There are a number of files in the tree which have been accidentally checked in with DOS line endings. Convert these to native line endings. There are also a few files which have DOS line endings on purpose, and I have set the svn:eol-style property to 'CRLF' on those. Reviewers: joerg, aaron.ballman Subscribers: aaron.ballman, cfe-commits Differential Revision: http://reviews.llvm.org/D15849 llvm-svn: 256704
* Driver: Fix include directories when not using libgcc under mingwMartell Malone2015-08-131-0/+5
| | | | | | | | | | | | | | | Summary: When we want to use mingw-w64 and clang with compiler-rt we should not need to have libgcc installed. This fixes finding includes when libgcc is not installed Reviewers: yaron.keren Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11808 llvm-svn: 244902
* Base the sys-root/mingw/include path on sysroot and not on /usr.Yaron Keren2015-07-241-1/+1
| | | | | | Thanks to Richard Smith for pointing this out! llvm-svn: 243144
* Try to appease clang buildbot by forcing libstdc++ in mingw.cpp test.Yaron Keren2015-07-241-6/+6
| | | | llvm-svn: 243101
* Add extensive tests for the mingw toolchain and remove trailing slash from Arch.Yaron Keren2015-07-241-0/+54
Address Richard Smith comments: remove the trailing seperator from the Arch variable, implement six mingw_* trees under tools/clangtest/Driver/Inputs and merge linux and Windows tests into a universal test that uses these trees. llvm-svn: 243098
OpenPOWER on IntegriCloud