summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/gcc-toolchain.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Driver tests: set `--sysroot=""` to support clang with `DEFAULT_SYSROOT`Serge Pavlov2019-09-281-0/+2
| | | | | | | | | | | | When testing clang that has been compiled with `-DDEFAULT_SYSROOT` set to some path, some tests would fail. Override sysroot to be empty string for the tests to succeed when clang is configured with `DEFAULT_SYSROOT`. Differential Revision: https://reviews.llvm.org/D66834 Patch by Sergej Jaskiewicz <jaskiewiczs@icloud.com>. llvm-svn: 373147
* tests: Add explicit -stdlib=libstdc++ to tests that require itJonas Hahnfeld2016-02-121-2/+2
| | | | | | | This will be needed for the next commit that allows to switch the default C++ library which would otherwise make these tests fail. llvm-svn: 260661
* Accept both / and \\ to fix the windows bots.Rafael Espindola2013-06-241-1/+1
| | | | llvm-svn: 184790
* Update two options to my proposed syntax for user-facing driver options:Chandler Carruth2013-06-201-1/+7
| | | | | | | | | | | | | | | | | | | -gcc-toolchain foo -> --gcc-toolchain=foo -target foo -> --target=foo I've added legacy aliases for the original spellings. I've updated the canonical tests to check both spellings, and switched all of the -gcc-toolchain usages elsewhere in the test suite to use the new one. I've updated some of the usages of -target to the new syntax, but will finish that in a separate entirely mechanical change once I'm sure this won't get rolled back for some reason (It touches a *huge* number of RUN lines in the test suite unsurprisingly). A nice result is that the three most common flags I end up using when doing cross compiles are all now consistent: --target=, --sysroot=, and --gcc-toolchain=. llvm-svn: 184408
* Skip testing the crtbegin.o, and resume using a single variable for theChandler Carruth2012-02-211-6/+6
| | | | | | prefixes. It seems only crtbegin.o uses the strange formatting. llvm-svn: 151094
* Clean up, add some documentation, and make this test return to checkingChandler Carruth2012-02-211-12/+10
| | | | | | | | the linker toolchainness a bit more thoroughly. It used to work this way, but hit buildbot issues. Hopefully subsequent fixes have addressed those problems, but I'll be watching the bots. llvm-svn: 151090
* Make the regular expressions in this test more narrow to ensure we'reChandler Carruth2012-02-191-6/+5
| | | | | | | actually matching the write substrings, and stop looking for a leading '/' to try and finish fixing darwin and other hosts. llvm-svn: 150938
* Don't check for /lib and /usr/lib.Rafael Espindola2012-02-191-2/+0
| | | | llvm-svn: 150907
* Our handling of variables in FileCheck looks really broken on windws. JustRafael Espindola2012-02-191-4/+4
| | | | | | give up on matching the path prefix for the libraries. llvm-svn: 150906
* Add an extra CHECK line to make sure TOOLCHAIN2 matches just the pathRafael Espindola2012-02-191-1/+2
| | | | | | prefix. llvm-svn: 150905
* Looks like we use forward slashes for header search but back slashes forRafael Espindola2012-02-191-3/+3
| | | | | | libraries on windows. Use two variables to make this test pass. llvm-svn: 150903
* Try to match the linker being named ld.exe. Second try at fixing the windows ↵Rafael Espindola2012-02-191-1/+1
| | | | | | bots. llvm-svn: 150901
* Don't assume a path starts with a /. Should fix the windows bot.Rafael Espindola2012-02-191-1/+1
| | | | llvm-svn: 150900
* Implement a -gcc-toolchain command line option that does the same asRafael Espindola2012-02-191-0/+27
configure's --with-gcc-toolchain. The configure option is now just a default value for the command line one. llvm-svn: 150898
OpenPOWER on IntegriCloud