rake-compiler 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.txt +14 -2
- data/lib/rake/extensioncompiler.rb +1 -1
- data/lib/rake/extensiontask.rb +1 -0
- data/lib/rake/javaextensiontask.rb +2 -2
- data/tasks/bin/cross-ruby.rake +3 -32
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8c720116334e8a54ca3029125770c4bec5b7b7a4cf1f51e5b6784a884834934
|
4
|
+
data.tar.gz: b4e8b071bfb222435f4beb1a9f2e4ba321faa36e77a7c1b75519a2650ed4980c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32e025cf3a640534b5f1448cf0d89b45d41825dcf5ea2d0bd5dd5cc5037375206e8955749e95a65bbe9c6b1f66a17ee15703099df3a9785273d1b38e106631c3
|
7
|
+
data.tar.gz: 2eaf2fdad874b8e875233d121d071aaad651d1c98c711f2e55d69141b6e41177dc62bb29bbdfaec19b17b097ce08006eef11e8e279dfa181d043f6ed3de36f6b
|
data/History.txt
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
-
=== 1.1.
|
1
|
+
=== 1.1.1 / 2020-07-10
|
2
|
+
|
3
|
+
* Changes:
|
4
|
+
* Bump the default Java bytecode to 1.7.
|
5
|
+
#172 [Patch by Charles Oliver Nutter]
|
6
|
+
|
7
|
+
* Enhancements:
|
8
|
+
* Add support for finding x86_64 MinGW GCC.
|
9
|
+
#164 [Patch by Lars Kanis]
|
10
|
+
* Strip cross compiled shared library automatically.
|
11
|
+
#165 [Patch by Lars Kanis]
|
12
|
+
|
13
|
+
=== 1.1.0 / 2019-12-25
|
2
14
|
|
3
15
|
* Bugfixes:
|
4
16
|
* Fix a bug that JavaExtenstionTask can't build anything.
|
5
17
|
#163 [Reported by Kai Kuchenbecker]
|
6
18
|
|
7
|
-
=== 1.0.9 /
|
19
|
+
=== 1.0.9 / 2019-12-23
|
8
20
|
|
9
21
|
* Changes:
|
10
22
|
* Use "-Xlint" option for JRuby native extension by default.
|
@@ -37,7 +37,7 @@ module Rake
|
|
37
37
|
paths = ENV['PATH'].split(File::PATH_SEPARATOR)
|
38
38
|
|
39
39
|
# the pattern to look into (captures *nix and windows executables)
|
40
|
-
pattern = "{mingw32-,i?86*mingw*}gcc{,.*}"
|
40
|
+
pattern = "{mingw32-,i?86*mingw*,x86*mingw*}gcc{,.*}"
|
41
41
|
|
42
42
|
@mingw_gcc_executable = paths.find do |path|
|
43
43
|
# cleanup paths before globbing
|
data/lib/rake/extensiontask.rb
CHANGED
@@ -35,8 +35,8 @@ module Rake
|
|
35
35
|
@source_pattern = '**/*.java'
|
36
36
|
@classpath = nil
|
37
37
|
@debug = false
|
38
|
-
@source_version = '1.
|
39
|
-
@target_version = '1.
|
38
|
+
@source_version = '1.7'
|
39
|
+
@target_version = '1.7'
|
40
40
|
@encoding = nil
|
41
41
|
@java_compiling = nil
|
42
42
|
@lint_option = nil
|
data/tasks/bin/cross-ruby.rake
CHANGED
@@ -96,36 +96,6 @@ file source_dir => ["#{USER_HOME}/sources/#{source_file}"] do |t|
|
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
|
-
# backup makefile.in
|
100
|
-
if RUBY_CC_VERSION >= "ruby-2.7.0"
|
101
|
-
makefile_in = "#{source_dir}/template/Makefile.in"
|
102
|
-
else
|
103
|
-
makefile_in = "#{source_dir}/Makefile.in"
|
104
|
-
end
|
105
|
-
makefile_in_bak = "#{makefile_in}.bak"
|
106
|
-
file makefile_in_bak => [source_dir] do |t|
|
107
|
-
cp makefile_in, makefile_in_bak
|
108
|
-
end
|
109
|
-
|
110
|
-
# correct the makefiles
|
111
|
-
file makefile_in => [makefile_in_bak] do |t|
|
112
|
-
content = File.open(makefile_in_bak, 'rb') { |f| f.read }
|
113
|
-
|
114
|
-
out = ""
|
115
|
-
|
116
|
-
content.each_line do |line|
|
117
|
-
if line =~ /^\s*ALT_SEPARATOR =/
|
118
|
-
out << "\t\t ALT_SEPARATOR = \"\\\\\\\\\"; \\\n"
|
119
|
-
else
|
120
|
-
out << line
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
when_writing("Patching Makefile.in") {
|
125
|
-
File.open(makefile_in, 'wb') { |f| f.write(out) }
|
126
|
-
}
|
127
|
-
end
|
128
|
-
|
129
99
|
task :mingw32 do
|
130
100
|
unless MINGW_HOST then
|
131
101
|
warn "You need to install mingw32 cross compile functionality to be able to continue."
|
@@ -135,7 +105,7 @@ task :mingw32 do
|
|
135
105
|
end
|
136
106
|
|
137
107
|
# generate the makefile in a clean build location
|
138
|
-
file "#{build_dir}/Makefile" => [build_dir,
|
108
|
+
file "#{build_dir}/Makefile" => [build_dir, source_dir] do |t|
|
139
109
|
|
140
110
|
options = [
|
141
111
|
"--host=#{MINGW_HOST}",
|
@@ -143,7 +113,8 @@ file "#{build_dir}/Makefile" => [build_dir, makefile_in] do |t|
|
|
143
113
|
"--build=#{RUBY_BUILD}",
|
144
114
|
'--enable-shared',
|
145
115
|
'--disable-install-doc',
|
146
|
-
'--with-ext='
|
116
|
+
'--with-ext=',
|
117
|
+
'LDFLAGS=-pipe -s',
|
147
118
|
]
|
148
119
|
|
149
120
|
# Force Winsock2 for Ruby 1.8, 1.9 defaults to it
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-compiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
- Luis Lavena
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -126,7 +126,7 @@ homepage: https://github.com/rake-compiler/rake-compiler
|
|
126
126
|
licenses:
|
127
127
|
- MIT
|
128
128
|
metadata: {}
|
129
|
-
post_install_message:
|
129
|
+
post_install_message:
|
130
130
|
rdoc_options:
|
131
131
|
- "--main"
|
132
132
|
- README.md
|
@@ -145,9 +145,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: 1.8.23
|
147
147
|
requirements: []
|
148
|
-
|
149
|
-
|
150
|
-
signing_key:
|
148
|
+
rubygems_version: 3.2.0.pre1
|
149
|
+
signing_key:
|
151
150
|
specification_version: 4
|
152
151
|
summary: Rake-based Ruby Extension (C, Java) task generator.
|
153
152
|
test_files: []
|