summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/linker-opts.c
Commit message (Collapse)AuthorAgeFilesLines
* [Driver] Delete XFAIL: windows-msvc after D65880/r368245Fangrui Song2019-08-081-1/+0
| | | | | | `-target %itanium_abi_triple` fixed the problem. llvm-svn: 368251
* [Driver] Move LIBRARY_PATH before user inputsFangrui Song2019-08-081-3/+5
| | | | | | | | | | | | | | | | Fixes PR16786 Currently, library paths specified by LIBRARY_PATH are placed after inputs: `inputs LIBRARY_PATH stdlib` In gcc, the order is: `LIBRARY_PATH inputs stdlib` if not cross compiling. (On Darwin targets, isCrossCompiling() always returns false.) This patch changes the behavior to match gcc. Reviewed By: hfinkel Differential Revision: https://reviews.llvm.org/D65880 llvm-svn: 368245
* [CMake] Use normalized Windows target triplesPetr Hosek2018-08-091-1/+1
| | | | | | | | | | | Changes the default Windows target triple returned by GetHostTriple.cmake from the old environment names (which we wanted to move away from) to newer, normalized ones. This also requires updating all tests to use the new systems names in constraints. Differential Revision: https://reviews.llvm.org/D47381 llvm-svn: 339307
* [clang] Get rid of "%T" expansionsKuba Mracek2017-08-151-3/+3
| | | | | | | | | | The %T lit expansion expands to a common directory shared between all the tests in the same directory, which is unexpected and unintuitive, and more importantly, it's been a source of subtle race conditions and flaky tests. In https://reviews.llvm.org/D35396, it was agreed that it would be best to simply ban %T and only keep %t, which is unique to each test. When a test needs a temporary directory, it can just create one using mkdir %t. This patch removes %T in clang. Differential Revision: https://reviews.llvm.org/D36437 llvm-svn: 310950
* Mark -Xclang as being a compilation-only option so that the clang driverRichard Smith2016-04-181-0/+12
| | | | | | | | | doesn't warn if it's passed to a link action. This matches the behavior for most other compilation-only options (including things like -f flags), and is necessary to suppress warnings on systems like cmake that always pass all compile flags to the linker. llvm-svn: 266695
* Support LIBRARY_PATH on all Darwin targets.Bob Wilson2014-07-291-0/+4
| | | | | | | | | | | | | | | r197490 changed the behavior of LIBRARY_PATH to try to match GCC's behavior for cross compilers and make clang work better on "bare metal" targets. Unfortunately that change is breaking a number of MacPorts projects because the LIBRARY_PATH environment variable is being ignored when compiling on a 64-bit host for a 32-bit target. Because the host and target architectures differ, isCrossCompiling returns true. This does not make sense for Darwin, where multiple architectures are supported natively via "fat" Mach-O slices and where development is generally done against SDKs regardless. This patch fixes the problem by overriding isCrossCompiling to return false for Darwin toolchains. llvm-svn: 214208
* LIBRARY_PATH environment variable should only be supported on a native compiler.Richard Barton2013-12-171-0/+1
| | | | llvm-svn: 197490
* clang/test/Driver/linker-opts.c: Fix XFAIL that I removed win32.NAKAMURA Takumi2012-12-111-0/+1
| | | | | | Sorry for my 3rd commit :( llvm-svn: 169827
* clang/test/Driver: Introduce the feature "clang-driver", set if gcc driver ↵NAKAMURA Takumi2012-12-111-1/+1
| | | | | | | | is not used. It is not set at targetting cygming. See PR12920. llvm-svn: 169824
* [driver] Older versions of ld expect '-L<dir>' not '-L <dir>'. In Xcode4 andChad Rosier2012-10-301-1/+1
| | | | | | | | later, '-L <dir>' is allowed, but rewrite these in the driver as '-L<dir>' to maintain backward compatibility. The same is true for the -I option. rdar://12366753 llvm-svn: 167054
* XFAIL linker-opts.c on win32 now that it doesn't pretend that link.exe is ld.Michael J. Spencer2012-06-181-1/+1
| | | | llvm-svn: 158687
* test/Driver/linker-opts.c: Mark as XFAIL:cygming, using gcc linker driver. ↵NAKAMURA Takumi2012-03-161-0/+3
| | | | | | It should be aware of LIBRARY_PATH. llvm-svn: 152896
* Address some of the concerns by Chandler.Bill Wendling2012-03-121-2/+2
| | | | | | | | * s/AddDirectoryList/addDirectoryList/ * Move the call to ::getenv into the function. * FileCheck-ize the testcase. llvm-svn: 152583
* Have clang pay attention to the LIBRARY_PATH environment variable.Bill Wendling2012-03-121-0/+2
The LIBRARY_PATH environment variable should be honored by clang. Have the driver pass the directories to the linker. <rdar://problem/9743567> and PR10296. llvm-svn: 152578
OpenPOWER on IntegriCloud