aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2023-08-31 18:04:56 -0700
committerShoaib Meenai <smeenai@fb.com>2023-09-18 16:14:18 -0700
commit58288c6c1214f8a3a0e32e003406437652e098bd (patch)
tree49ce1b6d09bf4f85111cf6b1ff44d18763decdd1 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
parent9a04bc4c43f7a0a556765869c49d9a10473b40f2 (diff)
downloadllvm-58288c6c1214f8a3a0e32e003406437652e098bd.zip
llvm-58288c6c1214f8a3a0e32e003406437652e098bd.tar.gz
llvm-58288c6c1214f8a3a0e32e003406437652e098bd.tar.bz2
[driver] Search for compatible Android runtime directories
Android triples include a version number, which makes direct triple comparisons for per-target runtime directory searching not always work. Instead, look for the triple with the highest compatible version number and use that per-target runtime directory instead. This maintains the existing fallback to a triple without any version number, but I'm hoping we can remove that in the future. https://discourse.llvm.org/t/62717 discusses this further. The one remaining triple mismatch after this is that Android armv7 triples usually have an environment of `androideabi`, which Clang normalizes to `android`. If you use the `androideabi` triple when building the runtimes with a per-target runtimes dir, the directory will get created with `androideabi` in its name, but Clang's triple search uses the normalized triple and will look for an `android` directory instead. https://reviews.llvm.org/D140925 will fix that by normalizing triples when creating the per-target runtimes directories as well. Reviewed By: phosek, pirama Differential Revision: https://reviews.llvm.org/D158476
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h')
0 files changed, 0 insertions, 0 deletions