about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-09-03 09:27:39 +0000
committerEric Wong <mwrap-public@80x24.org>2022-09-03 09:53:11 +0000
commit7524237b2de98f7e407ea227fb6ca6904153c0a5 (patch)
tree008a3168a8afaba71431420d15e31a8330b86b2b /ext
parent867b36082111f564f6e55f63cd21fa0c94df2d20 (diff)
downloadmwrap-7524237b2de98f7e407ea227fb6ca6904153c0a5.tar.gz
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.
Diffstat (limited to 'ext')
-rw-r--r--ext/mwrap/extconf.rb8
1 files 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'