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

Schrodinger ZHU Yifan via libc-commits libc-commits at lists.llvm.org
Fri Jul 12 23:33:29 PDT 2024


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

None

>From eb1336d82bc09b9aca386ec5d85d5003b09f0417 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <i at zhuyi.fan>
Date: Fri, 12 Jul 2024 23:32:31 -0700
Subject: [PATCH] [libc] always compile hash_test with -O3

---
 libc/test/src/__support/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

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.
 )



More information about the libc-commits mailing list