[libc-commits] [libc] [libc] always compile hash_test with -O3 (PR #98718)

via libc-commits libc-commits at lists.llvm.org
Fri Jul 12 23:33:57 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Schrodinger ZHU Yifan (SchrodingerZhu)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) libc/test/src/__support/CMakeLists.txt (+2) 


``````````diff
diff --git a/libc/test/src/__support/CMakeLists.txt b/libc/test/src/__support/CMakeLists.txt
index 4df055c9654ea..f994f65e08cbb 100644
--- a/libc/test/src/__support/CMakeLists.txt
+++ b/libc/test/src/__support/CMakeLists.txt
@@ -200,6 +200,8 @@ add_libc_test(
     libc.src.stdlib.rand
     libc.src.stdlib.srand
     libc.src.string.memset
+  COMPILE_OPTIONS
+    -O3
   UNIT_TEST_ONLY
     # Aligned Allocation is not supported in hermetic builds.
 )

``````````

</details>


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


More information about the libc-commits mailing list