raindrops.git  about / heads / tags
real-time stats for preforking Rack servers
   commit a46840c312ae2f214631d75cd5387a045dc7f73b (patch)
   parent 2025f4e test/test_last_data_recv: don't require posix_mq
     tree 1d94ef4e5551cc7157d76777d33ea8c5f6613c92
   author Eric Wong <bofh@yhbt.net>  2023-12-29 17:50:20 +0000
committer Eric Wong <bofh@yhbt.net>  2024-01-15 02:57:59 +0000

extconf: disable optimization to speed up checks by ~3%

Compiler optimization isn't useful when doing portability checks
for any of the things we care about.
---
 ext/raindrops/extconf.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ext/raindrops/extconf.rb b/ext/raindrops/extconf.rb
index 1733703..b8f147c 100644
--- a/ext/raindrops/extconf.rb
+++ b/ext/raindrops/extconf.rb
@@ -1,6 +1,7 @@
 require 'mkmf'
 require 'shellwords'
 
+$CFLAGS += ' -O0 ' # faster checks
 dir_config('atomic_ops')
 have_func('mmap', 'sys/mman.h') or abort 'mmap() not found'
 have_func('munmap', 'sys/mman.h') or abort 'munmap() not found'
@@ -158,4 +159,5 @@
   apt-get install libatomic-ops-dev
 SRC
 create_header # generate extconf.h to avoid excessively long command-line
+$CFLAGS.sub!(/ -O0 /, '')
 create_makefile('raindrops_ext')


glossary
--------
Commit objects reference one tree, and zero or more parents.

Single parent commits can typically generate a patch in
unified diff format via `git format-patch'.

Multiple parents means the commit is a merge.

Root commits have no ancestor.  Note that it is
possible to have multiple root commits when merging independent histories.

Every commit references one top-level tree object.

git clone http://yhbt.net/raindrops.git