summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/darwin-sdkroot.c
Commit message (Collapse)AuthorAgeFilesLines
* [driver][darwin] Pass -platform_version flag to the linker instead of the ↵Alex Lorenz2019-12-171-3/+3
| | | | | | | | | | | -<platform>_version_min flag In Xcode 11, ld added a new flag called -platform_version that can be used instead of the old -<platform>_version_min flags. The new flag allows Clang to pass the SDK version from the driver to the linker. This patch adopts the new -platform_version flag in Clang, and starts using it by default, unless a linker version < 520 is passed to the driver. Differential Revision: https://reviews.llvm.org/D71579
* Driver tests: set `--sysroot=""` to support clang with `DEFAULT_SYSROOT`Serge Pavlov2019-09-281-6/+6
| | | | | | | | | | | | 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
* Split test/Driver/darwin-sdkroot.c into two testsAlex Lorenz2018-04-041-56/+0
| | | | | | | | | | | The test additions in r329110 are Darwin-specific, as they rely on a code path that is reachabled when driver is invoked without -target. Instead of making the old test checks Darwin-specific too, let's simply split it into two files to ensure that the old checks are still platform-agnostic. Thanks Chandler for suggesting this! llvm-svn: 329141
* Add REQUIRES: darwin-system to test/Driver/darwin-sdkroot.cAlex Lorenz2018-04-031-0/+1
| | | | | | The test from r329110 is for Darwin only llvm-svn: 329113
* [driver][darwin] Do not infer -simulator environment for non-simulator SDKsAlex Lorenz2018-04-031-0/+55
| | | | | | rdar://36369832 llvm-svn: 329110
* [driver] Set the 'simulator' environment for Darwin when compiling forAlex Lorenz2017-12-071-1/+1
| | | | | | | | | | iOS/tvOS/watchOS simulator rdar://35135215 Differential Revision: https://reviews.llvm.org/D40682 llvm-svn: 320073
* Move the test from r305678 to a separte file with 'REQUIRES: system-darwin'Alex Lorenz2017-06-191-9/+0
| | | | | | Otherwise it will fail on non-macOS systems. llvm-svn: 305685
* [driver][macOS] Pick the system version for the deployment targetAlex Lorenz2017-06-191-0/+9
| | | | | | | | | | | | | | if the SDK is newer than the system This commit improves the driver by making sure that it picks the system version for the deployment target when the version of the macOS SDK is newer than the system version. rdar://29449467 Differential Revision: https://reviews.llvm.org/D34175 llvm-svn: 305678
* Actually requiring shell disables the test on Windows whereasYaron Keren2015-07-151-3/+0
| | | | | | | previously requiring shell-preserves-root did not, so do not require anything. llvm-svn: 242314
* Since r179283, internal shell is default on windows and so shell-preserves-rootYaron Keren2015-07-151-1/+1
| | | | | | | | | | | | | | | is true on MSYS bash although this requires: used to disable tests on MSYS bash. Nevertheless, all tests requiring shell-preserves-root do pass except for Driver/darwin-sdkroot.c. It will require a patch, either by disabling it on Windows or by fixing shell-preserves-root to really be true only on MSYS and making darwin-sdkroot.c its only user. In any case, all other tests requiring shell-preserves-root do not really require it so I'm replacing REQUIRES: shell-preserves-root with REQUIRES: shell in two tests first. llvm-svn: 242312
* Update test comment that it fails the same way on MSYS2.Yaron Keren2015-07-151-3/+4
| | | | llvm-svn: 242282
* Update darwin SDK version parsing to support OSX and simulatorSteven Wu2015-06-251-0/+36
| | | | | | | | | | This re-commits r226005 with a tweak. The origin attempt failed because Darwin bot sets up SDKROOT and clang can deduce SDK version from them after this patch. That broke many driver tests due to the change of deployment target version. Now the tests should not complain after r240574. llvm-svn: 240619
* Revert "More robust deployment target parsing on darwin"Steven Wu2015-01-141-35/+0
| | | | | | This breaks green-dragon. Revert it and investigate. llvm-svn: 226011
* More robust deployment target parsing on darwinSteven Wu2015-01-141-0/+35
| | | | | | | | | | | | | | | | Summary: This is a more robust way of figuring out implicit deployment target from isysroot. It also handles iphone simulator target. Reviewers: bob.wilson, t.p.northover Reviewed By: t.p.northover Subscribers: t.p.northover, cfe-commits Differential Revision: http://reviews.llvm.org/D6939 llvm-svn: 226005
* Re-enable this test on Windows since it passes with GnuWin32 env.exe.Yaron Keren2014-11-041-5/+6
| | | | llvm-svn: 221271
* Make this test unsupported when there is no real 'env' from a real shell.Yaron Keren2014-08-091-0/+6
| | | | | | | | | | | | | | | | | | While the test was already requiring shell-preserves-root (such as the internal shell), it wasn't aware that the MSYS 1.0 env command knows how to expand root by itself! From cmd.exe try: env SDKROOT=/ cmd //c echo %SDKROOT% And get: C:/MINGW/MSYS/1.0 To be certain we have a good 'env' program the test now requires a shell. llvm-svn: 215298
* clang/test/Driver/darwin-sdkroot.c: Suppress this on msys bash, to introduce ↵NAKAMURA Takumi2013-01-161-0/+3
| | | | | | | | the feature "shell-preserves-root". MSYS transforms '/' to 'X:/mingwroot/'. llvm-svn: 172598
* [driver/Darwin] Adjust SDKROOT handling code to not generate "-isysroot /".Daniel Dunbar2013-01-151-1/+11
| | | | llvm-svn: 172548
* darwin/driver: Support using SDKROOT to define the default for -isysroot.Daniel Dunbar2012-08-171-0/+22
- The SDKROOT environment variable is the de facto way to set the default SDK for a number of tools, join forces with them. llvm-svn: 162116
OpenPOWER on IntegriCloud