Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177659750
D59538.1794969633.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
879 B
Referenced Files
None
Subscribers
None
D59538.1794969633.diff
View Options
diff --git a/lib/googletest/tests/Makefile.inc b/lib/googletest/tests/Makefile.inc
--- a/lib/googletest/tests/Makefile.inc
+++ b/lib/googletest/tests/Makefile.inc
@@ -5,14 +5,14 @@
PACKAGE= tests
-# Clang's optimizer spends a really long time on these tests at -O2. Changing
+# Both GCC's and Clang's optimizer spends a really long time on these tests at -O2. Changing
# -O2 to -O1 reduces the -j32 time for lib/googletest/test from 131s to 71s.
# Using -O0 further reduces the time to 29s, and also reduces the disk usage
# from 144MB (at -O2) / 92MB (at -O1) to 82MB, so we use -O0.
# Note: Building without debug info saves about 10-15% of the build time, so we
# only enable debug info if DEBUG_FLAGS is not empty (71s -> 64s at -O1 and -j32).
-CFLAGS.clang+= -O0
+CFLAGS+= -O0
.if empty(DEBUG_FLAGS)
MK_DEBUG_FILES:=no
-CFLAGS.clang+= -g0
+CFLAGS+= -g0
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 2:40 AM (8 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38657612
Default Alt Text
D59538.1794969633.diff (879 B)
Attached To
Mode
D59538: lib/googletest: also use -O0 for internal tests with GCC
Attached
Detach File
Event Timeline