[compiler-rt] [gwp_asan] Soft-transition ZXTEST_USE_STREAMABLE_MACROS removal (PR #121887)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 6 21:41:58 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Caslyn Tonelli (Caslyn)

<details>
<summary>Changes</summary>

Soft-transition the removal of setting ZXTEST_USE_STREAMABLE_MACROS, by only setting the macro if not already defined. This macro will be set downstream in Fuchsia and a future PR will remove this upstream setting entirely.

---
Full diff: https://github.com/llvm/llvm-project/pull/121887.diff


1 Files Affected:

- (modified) compiler-rt/lib/gwp_asan/tests/harness.h (+2) 


``````````diff
diff --git a/compiler-rt/lib/gwp_asan/tests/harness.h b/compiler-rt/lib/gwp_asan/tests/harness.h
index c96f846996d353..3fbcf991c5592f 100644
--- a/compiler-rt/lib/gwp_asan/tests/harness.h
+++ b/compiler-rt/lib/gwp_asan/tests/harness.h
@@ -12,7 +12,9 @@
 #include <stdarg.h>
 
 #if defined(__Fuchsia__)
+#ifndef ZXTEST_USE_STREAMABLE_MACROS
 #define ZXTEST_USE_STREAMABLE_MACROS
+#endif
 #include <zxtest/zxtest.h>
 namespace testing = zxtest;
 // zxtest defines a different ASSERT_DEATH, taking a lambda and an error message

``````````

</details>


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


More information about the llvm-commits mailing list