Skip to content

Commit f0937a2

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-next
2 parents b1aee11 + 2587df2 commit f0937a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/lit.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,12 @@ elif run_os in ['linux-gnu', 'linux-gnueabihf', 'freebsd', 'windows-cygnus', 'wi
944944
(config.variant_triple, clang_mcp_opt))
945945
config.target_ld = "ld -L%r" % (make_path(test_resource_dir, config.target_sdk_name))
946946
elif run_os == 'linux-androideabi' or run_os == 'linux-android':
947+
# The module triple for Android ARMv7 seems to be canonicalized in LLVM
948+
# to be armv7-none-linux-android, without the "eabi" bit. Let's remove the
949+
# same bit from the substitutions so the tests pass correctly.
950+
target_specific_module_triple = re.sub(r'androideabi', 'android',
951+
target_specific_module_triple)
952+
config.variant_triple = re.sub(r'androideabi', 'android', config.variant_triple)
947953
def get_architecture_value(**kwargs):
948954
result = kwargs[run_cpu]
949955
if result is None:

0 commit comments

Comments
 (0)