Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[clang/test] Correctly specify simulator env in target flag in fsanit…
…ize.c Putting "simulator" in the `-target` flag requires putting it in the "environment" part of the triple, which is the 4th `-`-separated component. Some places in the tests currently use "iossimulator" which puts it in the OS field. The triple parsing code in llvm::Triple uses startswith("ios") in parseOS(), so that successfully sets the OS to "iOS", and all these triples use an intel arch, and iOS + intel triple implicitly make the driver convert the environment to "simulator", so this happened to work -- but it led to the somewhat strange "simulator-simulator" in the diag in the test. No behavior change. Differential Revision: https://reviews.llvm.org/D132399
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters