summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/darwin-sdk-version.c
Commit message (Collapse)AuthorAgeFilesLines
* Make test/Driver/darwin-sdk-version.c pass if the host triple is 32-bitNico Weber2019-01-031-2/+2
| | | | | | | | | | | For some reason, the cmake build on my macbook has LLVM_HOST_TRIPLE:STRING=i386-apple-darwin16.7.0 . test/Driver/darwin-sdk-version.c assumed that the host triple is 64-bit, so make it resilient against 32-bit host triples. Differential Revision: https://reviews.llvm.org/D56067 llvm-svn: 350278
* Make test/Driver/darwin-sdk-version.c pass on hosts < macOS10.14Alex Lorenz2018-12-171-2/+2
| | | | | | | | | | The test test/Driver/darwin-sdk-version.c from r349380 checks if the macOS deployment target can be correctly inferred from the SDK version. When the SDK version is > host version, the driver will pick the host version, so the old test failed on macOS < 10.14. This commit makes this test more resilient by using an older SDK version. llvm-svn: 349393
* [darwin] parse the SDK settings from SDKSettings.json if it exists andAlex Lorenz2018-12-171-0/+37
pass in the -target-sdk-version to the compiler and backend This commit adds support for reading the SDKSettings.json file in the Darwin driver. This file is used by the driver to determine the SDK's version, and it uses that information to pass it down to the compiler using the new -target-sdk-version= option. This option is then used to set the appropriate SDK Version module metadata introduced in r349119. Note: I had to adjust the two ast tests as the SDKROOT environment variable on macOS caused SDK version to be picked up for the compilation of source file but not the AST. rdar://45774000 Differential Revision: https://reviews.llvm.org/D55673 llvm-svn: 349380
OpenPOWER on IntegriCloud