File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,14 @@ def define_sqlite_task(platform, host)
2828end
2929
3030# native sqlite3 compilation
31- define_sqlite_task RUBY_PLATFORM , RbConfig ::CONFIG [ "host" ]
31+ recipe = define_sqlite_task ( RUBY_PLATFORM , RbConfig ::CONFIG [ "host" ] )
32+
33+ # force compilation of sqlite3 when working natively under MinGW
34+ if RUBY_PLATFORM =~ /mingw/
35+ RUBY_EXTENSION . config_options << "--with-opt-dir=#{ recipe . path } "
36+
37+ Rake ::Task [ 'compile' ] . prerequisites . unshift "ports:sqlite3:#{ RUBY_PLATFORM } "
38+ end
3239
3340# trick to test local compilation of sqlite3
3441if ENV [ "USE_MINI_PORTILE" ] == "true"
@@ -42,11 +49,6 @@ if ENV["USE_MINI_PORTILE"] == "true"
4249 Rake ::Task [ "compile" ] . prerequisites . unshift "ports:sqlite3:#{ RUBY_PLATFORM } "
4350end
4451
45- # force compilation of sqlite3 when working natively under MinGW
46- if RUBY_PLATFORM =~ /mingw/
47- Rake ::Task [ 'compile' ] . prerequisites . unshift "ports:sqlite3:#{ RUBY_PLATFORM } "
48- end
49-
5052# iterate over all cross-compilation platforms and define the proper
5153# sqlite3 recipe for it.
5254if RUBY_EXTENSION . cross_compile
You can’t perform that action at this time.
0 commit comments