raindrops RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 3/4] extconf: disable optimization to speed up checks by ~3%
  2023-12-29 17:50  5% [PATCH 0/4] lighter tests + rack 3 dependency fix Eric Wong
@ 2023-12-29 17:50  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-12-29 17:50 UTC (permalink / raw)
  To: raindrops-public

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

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/4] lighter tests + rack 3 dependency fix
@ 2023-12-29 17:50  5% Eric Wong
  2023-12-29 17:50  7% ` [PATCH 3/4] extconf: disable optimization to speed up checks by ~3% Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-12-29 17:50 UTC (permalink / raw)
  To: raindrops-public

Some things I noticed while preparing a release in the wake of
Ruby 3.3.

Eric Wong (4):
  tests: support running tests without rack||aggregate
  test/test_last_data_recv: don't require posix_mq
  extconf: disable optimization to speed up checks by ~3%
  gemspec: support rack 3.x

 ext/raindrops/extconf.rb    |  2 ++
 raindrops.gemspec           |  2 +-
 test/rack_unicorn.rb        |  3 +--
 test/test_last_data_recv.rb | 16 +++++++++++++++-
 test/test_watcher.rb        |  4 ++--
 5 files changed, 21 insertions(+), 6 deletions(-)

^ permalink raw reply	[relevance 5%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-12-29 17:50  5% [PATCH 0/4] lighter tests + rack 3 dependency fix Eric Wong
2023-12-29 17:50  7% ` [PATCH 3/4] extconf: disable optimization to speed up checks by ~3% Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/raindrops.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).