File tree Expand file tree Collapse file tree 4 files changed +6
-13
lines changed Expand file tree Collapse file tree 4 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 7
7
class TestMkmfConfig < Test ::Unit ::TestCase
8
8
def test_dir_config
9
9
bug8074 = '[Bug #8074]'
10
- lib = RbConfig . expand ( RbConfig ::MAKEFILE_CONFIG [ "libdir" ] , "exec_prefix" => "" )
10
+ lib = RbConfig . expand ( RbConfig ::MAKEFILE_CONFIG [ "libdir" ] , "exec_prefix" => "/test/foo " )
11
11
assert_separately %w[ -rmkmf - -- --with-foo-dir=/test/foo ] , %{
12
- assert_equal(%w[/test/foo/include /test/foo #{ lib } ], dir_config("foo"), #{ bug8074 . dump } )
12
+ assert_equal(%w[/test/foo/include #{ lib } ], dir_config("foo"), #{ bug8074 . dump } )
13
13
}
14
14
end
15
15
end
Original file line number Diff line number Diff line change @@ -51,13 +51,4 @@ def test_vendorarchdirs
51
51
assert_match ( /\$ \( sitearch|\$ \( rubysitearchprefix\) / , val , "#{ key } #{ bug7823 } " )
52
52
end
53
53
end
54
-
55
- if /darwin/ =~ RUBY_PLATFORM
56
- def test_sdkroot
57
- assert_separately ( [ { "SDKROOT" => "$(prefix)/SDKRoot" } ] , "#{ <<~"begin;" } \n #{ <<~'end;' } " )
58
- begin;
59
- assert_equal RbConfig::CONFIG["prefix"]+"/SDKRoot", RbConfig::CONFIG["SDKROOT"]
60
- end;
61
- end
62
- end
63
54
end
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ module RbConfig
276
276
print <<EOS if $unicode_emoji_version
277
277
CONFIG["UNICODE_EMOJI_VERSION"] = #{ $unicode_emoji_version. dump }
278
278
EOS
279
- print <<EOS if /darwin/ =~ arch
279
+ print prefix . start_with? ( "/System/" ) ? <<EOS : <<EOS if /darwin/ =~ arch
280
280
if sdkroot = ENV["SDKROOT"]
281
281
sdkroot = sdkroot.dup
282
282
elsif File.exist?(File.join(CONFIG["prefix"], "include")) ||
@@ -286,6 +286,8 @@ module RbConfig
286
286
sdkroot.chomp!
287
287
end
288
288
CONFIG["SDKROOT"] = sdkroot
289
+ EOS
290
+ CONFIG["SDKROOT"] = ""
289
291
EOS
290
292
print <<EOS
291
293
CONFIG["platform"] = #{ platform || '"$(arch)"' }
Original file line number Diff line number Diff line change 11
11
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
12
12
#define RUBY_VERSION_TEENY 0
13
13
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
14
- #define RUBY_PATCHLEVEL 29
14
+ #define RUBY_PATCHLEVEL 30
15
15
16
16
#include "ruby/version.h"
17
17
#include "ruby/internal/abi.h"
You can’t perform that action at this time.
0 commit comments