aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2021-02-02 23:25:27 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2021-02-03 13:42:00 -0800
commit98e50a7d4c12d2c32eb15e55cbb2e1f89a802e28 (patch)
tree6ffc1854595e19b2c740c51f393ea32be0345638 /clang/lib/Frontend/CompilerInvocation.cpp
parent4dc08cc3aa41a28ca6ec82bb9c7183048761aad5 (diff)
downloadllvm-98e50a7d4c12d2c32eb15e55cbb2e1f89a802e28.zip
llvm-98e50a7d4c12d2c32eb15e55cbb2e1f89a802e28.tar.gz
llvm-98e50a7d4c12d2c32eb15e55cbb2e1f89a802e28.tar.bz2
[lldb] Honor the CPU type & subtype when launching on macOS
Honor the CPU type (and subtype) when launching the inferior on macOS. Part of this functionality was thought to be no longer needed and removed in 85bd4369610fe60397455c8e0914a09288285e84, however it's still needed, for example to launch binaries under Rosetta 2 on Apple Silicon. This patch will use posix_spawnattr_setarchpref_np if available and fallback to posix_spawnattr_setbinpref_np if not. Differential revision: https://reviews.llvm.org/D95922
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions