File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
lldb/packages/Python/lldbsuite/test Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -997,7 +997,10 @@ def is_toolchain_with_mte():
997997 f .close ()
998998
999999 cmd = f"{ compiler_path } -x c -o { f .name } -"
1000- if subprocess .run (cmd , input = "int main() {}" .encode ()).returncode != 0 :
1000+ if (
1001+ subprocess .run (cmd , shell = True , input = "int main() {}" .encode ()).returncode
1002+ != 0
1003+ ):
10011004 os .remove (f .name )
10021005 # Cannot compile at all, don't skip the test
10031006 # so that we report the broken compiler normally.
@@ -1014,7 +1017,7 @@ def is_toolchain_with_mte():
10141017 void* ptr = __arm_mte_create_random_tag((void*)(0), 0);
10151018 }"""
10161019 cmd = f"{ compiler_path } -march=armv8.5-a+memtag -x c -o { f .name } -"
1017- res = subprocess .run (cmd , input = test_src .encode ())
1020+ res = subprocess .run (cmd , shell = True , input = test_src .encode ())
10181021 os .remove (f .name )
10191022 if res .returncode != 0 :
10201023 return "Toolchain does not support MTE"
You can’t perform that action at this time.
0 commit comments