aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorJason Molenda <jason@molenda.com>2022-03-24 14:35:46 -0700
committerJason Molenda <jason@molenda.com>2022-03-24 15:44:57 -0700
commit99515783a63cd5018fa9231872dc5c8b13d64947 (patch)
tree2876b90ce3b5f599838aee7361200b193fa103a1 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent8e9c7f716acbecd107280abb07fee2b8601afc2c (diff)
downloadllvm-99515783a63cd5018fa9231872dc5c8b13d64947.zip
llvm-99515783a63cd5018fa9231872dc5c8b13d64947.tar.gz
llvm-99515783a63cd5018fa9231872dc5c8b13d64947.tar.bz2
Don't search for sim SDK path until we know we need it
When iterating over all Platforms looking for the best one, on a Mac the Simulator platforms (iOS, tvOS, watchOS) will first find their SDK directory by calling xcrun, then decide if they should activate or not. When that SDK is absent, the call to xcrun to find it can be very slow. This patch delays that directory search until we know we're activating this platform, so non-simulator environments don't pay a perf cost ever time they go through the list of platforms. Differential Revision: https://reviews.llvm.org/D122373 rdar://87960090
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions