Skip to content

Commit eb5f8ed

Browse files
committed
On Windows add the msys path where freetds is automatically installed (C:/Ruby32-x64/msys64/ucrt64/include/freetds)
1 parent 23ed1e4 commit eb5f8ed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
* Add Ruby 3.0 to the cross compile list
44
* Fix segfault when asking if client was dead after closing it. Fixes #519.
5+
* Fix Gem installation on Windows by adding default freetds msys path. Fixes #522
56

67
## 2.1.5
78

ext/tiny_tds/extconf.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ def do_help
3333
/usr/local
3434
)
3535

36+
if ENV["RI_DEVKIT"] && ENV["MINGW_PREFIX"] # RubyInstaller Support
37+
DIRS.unshift(File.join(ENV["RI_DEVKIT"], ENV["MINGW_PREFIX"]))
38+
end
39+
3640
# Add the ports directory if it exists for local developer builds
3741
DIRS.unshift(freetds_ports_dir) if File.directory?(freetds_ports_dir)
3842

0 commit comments

Comments
 (0)