diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-29 03:08:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-29 03:08:45 +0000 |
commit | a594ca98f299dba9c988f95ce58e9c5d6229d26f (patch) | |
tree | 243c52fc6b4bde0a87e4ee7e16d2734902e9805e /ext/-test-/string | |
parent | a552fa2d66d495ec9700e9a656137e444b6f24dd (diff) | |
download | ruby-a594ca98f299dba9c988f95ce58e9c5d6229d26f.tar.gz |
auto_ext.rb
* ext/-test-/auto_ext.rb (auto_ext): utitily method to create
extension libraries for tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/string')
-rw-r--r-- | ext/-test-/string/extconf.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/-test-/string/extconf.rb b/ext/-test-/string/extconf.rb index 5e8b709c8a..d786b15db9 100644 --- a/ext/-test-/string/extconf.rb +++ b/ext/-test-/string/extconf.rb @@ -1,8 +1,3 @@ # frozen_string_literal: false -$INCFLAGS << " -I$(topdir) -I$(top_srcdir)" -$srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] -inits = $srcs.map {|s| File.basename(s, ".*")} -inits.delete("init") -inits.map! {|s|"X(#{s})"} -$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\"" -create_makefile("-test-/string") +require_relative "../auto_ext.rb" +auto_ext(inc: true) |