summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cross-linux.c
Commit message (Collapse)AuthorAgeFilesLines
* [Clang] Force rtlib=platform in test to avoid fails with CLANG_DEFAULT_RTLIBKristina Brooks2020-01-061-0/+3
| | | | | | | | | | | | | | | | | | Driver test `cross-linux.c` fails when CLANG_DEFAULT_RTLIB is "compiler-rt" as the it expects a GCC-style `"crtbegin.o"` after `"crti.o"` but instead receives something akin to this in the frontend invocation: ``` "crt1.o" "crti.o" "/o/b/llvm/bin/../lib/clang/10.0.0/lib/linux/clang_rt.crtbegin-x86_64.o" ``` This patch adds an override to `cross-linux.c` tests so the expected result is produced regardless of the compile-time default rtlib, as having tests fail due to that is fairly confusing. After applying the patch, the test passes regardless of the CLANG_DEFAULT_RTLIB setting. Differential Revision: https://reviews.llvm.org/D72236
* Fix tests with CLANG_DEFAULT_LINKERJonas Hahnfeld2017-01-081-9/+9
| | | | | | | | | I originally requested this to be tested in D25263 but in the end forgot to make sure that it was done. Differential Revision: https://reviews.llvm.org/D28289 llvm-svn: 291389
* Fix Driver tests that I broke on Windows in r214924Reid Kleckner2014-08-051-14/+14
| | | | llvm-svn: 214931
* [x32] Adding X32 target support to driver, including ↵Zinovy Nis2014-07-101-0/+8
| | | | | | | | | | TargetInfo,DescriptionString, flags, paths lookup, etc. Cover changes with new tests. The author of the patch is Pavel Chupin (@pavel.v.chupin). The changes enable "hello world" on x32 target (x86_64-*-linux-gnux32). s/isX32/IsX32/ also fixed. Differential Revision: http://reviews.llvm.org/D4180 llvm-svn: 212725
* Revert "Support cross linking to arm on ubuntu."Rafael Espindola2013-10-281-2/+2
| | | | | | | | This reverts commit r193528 (and fixes). It broke Chandler's setup. llvm-svn: 193554
* Support cross linking to arm on ubuntu.Rafael Espindola2013-10-281-2/+2
| | | | | | | | | | With this patch we correctly determine that ubuntu's ARM tree is not biarch and use "lib" istead of "lib32". Without this patch the search inside the arm tree for the crt files was failing and we would end up trying to use the i686 ones in lib32. llvm-svn: 193528
* With help from chapuni on IRC, I think this is right now. =] The issueChandler Carruth2013-07-311-8/+8
| | | | | | | | | | | | | | | | is that the command is quoted differently from the arguments. The command has '\' and the argument has '\\'. This is made unclear because FileCheck escapes the single matched '\' when it prints the contents of the variable, thus fooling me into thinking it had matched '\\' as intended. The solution is to bind the gcc_install variable in the argument list rather than out of the command. To do so we also have to be a bit more careful so that we don't get stray other things into the '.*' regex. Also, because of the argument difference, '\\\\' is the correct formulation before crtbegin, go back to that. llvm-svn: 187489
* Run an experiment to try to understand the windows failure better byChandler Carruth2013-07-311-1/+1
| | | | | | | replacing one variable with the regex. This won't fix anything, but will hopefully shed light on the nature of the failure. llvm-svn: 187488
* Try only two slashes as that seems to be working elsewhere in thisChandler Carruth2013-07-311-4/+4
| | | | | | testcase. llvm-svn: 187487
* Re-enable the cross-linux test on windows after making it tolerant ofChandler Carruth2013-07-311-8/+4
| | | | | | | | the path separator used when locating crtbegin.o. I'll watch the bots to see if there are other issues lurking here. llvm-svn: 187486
* clang/test/Driver/cross-linux.c is suppressed on win32 for now. Investigating.NAKAMURA Takumi2013-07-311-0/+4
| | | | llvm-svn: 187483
* Find a better compromise with the default library search paths used byChandler Carruth2013-07-311-0/+95
Clang when linking and using a GCC installation from a GCC cross-compiler. This was desired already by two special case platforms (Android and Mips), and turns out to be generally (if frustratingly) true. I've added a substantial comment to the code clarifying the underlying assumptions of doing actual cross compiles with Clang (or GCC for that matter!) and help avoid further confusion here. The end result is to realize that fully general form of PR12478 cannot be resolved while we support existing cross-compiling GCC toolchains, and linking with them (namely, linking against their libgcc and libstdc++ installs). GCC installs these target libraries under a target-specific prefix but one that may not be available within the actual sysroot in use. When linking in this world, GCC works and Clang should as well, but caveat emptor: DSOs from this tree must be replicated and rpath-fixed to be found at runtime within the sysroot. I've extended the cross compile test cases to cover these issues by pointing them at a sysroot and actually checking the library search paths. llvm-svn: 187466
OpenPOWER on IntegriCloud