@@ -8,14 +8,14 @@ SPEC = Gem::Specification.load(File.expand_path('../tiny_tds.gemspec', __FILE__)
8
8
9
9
CrossLibrary = Struct . new :platform , :openssl_config
10
10
CrossLibraries = [
11
- [ 'x64-mingw-ucrt' , 'mingw64' ] ,
12
- [ 'x64-mingw32' , 'mingw64' ] ,
11
+ [ 'x64-mingw-ucrt' , 'mingw64' ] ,
12
+ [ 'x64-mingw32' , 'mingw64' ] ,
13
13
[ 'x86_64-linux-gnu' , 'linux-x86_64' ] ,
14
14
[ 'x86_64-linux-musl' , 'linux-x86_64' ] ,
15
15
[ 'aarch64-linux-gnu' , 'linux-aarch64' ] ,
16
16
[ 'aarch64-linux-musl' , 'linux-aarch64' ] ,
17
17
] . map do |platform , openssl_config |
18
- CrossLibrary . new platform , openssl_config
18
+ CrossLibrary . new platform , openssl_config
19
19
end
20
20
21
21
# Add our project specific files to clean for a rebuild
@@ -55,13 +55,13 @@ Rake::ExtensionTask.new('tiny_tds', SPEC) do |ext|
55
55
end
56
56
57
57
ext . cross_config_options += CrossLibraries . map do |xlib |
58
- {
59
- xlib . platform => [
60
- "--with-cross-build=#{ xlib . platform } " ,
61
- "--with-openssl-platform=#{ xlib . openssl_config } "
62
- ]
63
- }
64
- end
58
+ {
59
+ xlib . platform => [
60
+ "--with-cross-build=#{ xlib . platform } " ,
61
+ "--with-openssl-platform=#{ xlib . openssl_config } "
62
+ ]
63
+ }
64
+ end
65
65
end
66
66
67
67
task build : [ :clean , :compile ]
0 commit comments