From: Eric Wong <e@80x24.org>
To: mwrap-public@80x24.org
Cc: Sam Saffron <sam.saffron@gmail.com>
Subject: [PATCH 1/3] extconf.rb: avoid RDoc errors during gem install
Date: Sat, 3 Sep 2022 09:27:39 +0000 [thread overview]
Message-ID: <20220903092741.2284559-2-e@80x24.org> (raw)
In-Reply-To: <20220903092741.2284559-1-e@80x24.org>
RDoc doesn't seem to like <<'' (blank line) as a heredoc
terminator. That said, RDoc scanning extconf.rb during "gem install"
is unexpected and make no sense to me. Normal `rdoc' invocations
seem to ignore extconf.rb.
---
ext/mwrap/extconf.rb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ext/mwrap/extconf.rb b/ext/mwrap/extconf.rb
index 512ab82..1828407 100644
--- a/ext/mwrap/extconf.rb
+++ b/ext/mwrap/extconf.rb
@@ -11,15 +11,15 @@ have_library 'dl'
have_library 'c'
have_library 'execinfo' # FreeBSD
-if try_link(<<'')
+if try_link(<<EOC)
int main(void) { return __builtin_add_overflow_p(0,0,(int)1); }
-
+EOC
$defs << '-DHAVE_BUILTIN_ADD_OVERFLOW_P'
end
-if try_link(<<'')
+if try_link(<<EOC)
int main(int a) { return __builtin_add_overflow(0,0,&a); }
-
+EOC
$defs << '-DHAVE_BUILTIN_ADD_OVERFLOW_P'
else
abort 'missing __builtin_add_overflow'
next prev parent reply other threads:[~2022-09-03 9:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-03 9:27 [PATCH 0/3] mwrap odds and ends before 2.3 Eric Wong
2022-09-03 9:27 ` Eric Wong [this message]
2022-09-03 9:27 ` [PATCH 2/3] add --version and --help args Eric Wong
2022-09-03 9:27 ` [PATCH 3/3] cleanup some FreeBSD-related workarounds Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://80x24.org/mwrap/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220903092741.2284559-2-e@80x24.org \
--to=e@80x24.org \
--cc=mwrap-public@80x24.org \
--cc=sam.saffron@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mwrap.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).