[Lldb-commits] [lldb] [lldb] Fixed the @skipUnlessAArch64MTELinuxCompiler decorator in case of Windows host (PR #115337)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 7 22:47:10 PST 2024


================
@@ -1010,12 +1024,21 @@ def is_toolchain_with_mte():
             int main() {
                 void* ptr = __arm_mte_create_random_tag((void*)(0), 0);
             }"""
-        cmd = "echo '%s' | %s -march=armv8.5-a+memtag -x c -o %s -" % (
-            test_src,
-            compiler_path,
-            f.name,
+        with open(f_src.name, "w") as f:
+            f.write(test_src)
----------------
labath wrote:

Considered using the `subprocess` module and passing the contents through the `input` argument?

https://github.com/llvm/llvm-project/pull/115337


More information about the lldb-commits mailing list