Skip to content

Commit 46843e8

Browse files
Largoandyundso
authored andcommitted
On Windows add the msys path where freetds is automatically installed (C:/Ruby32-x64/msys64/ucrt64/include/freetds)
(cherry picked from commit eb5f8ed)
1 parent 6113bc5 commit 46843e8

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
@@ -3,6 +3,7 @@
33
* Add Ruby 3.0, 3.1, and 3.2 to the cross compile list
44
* Fix segfault when asking if client was dead after closing it. Fixes #519.
55
* Mark `alloc` function as undefined on `TinyTds::Result`. Fixes #515.
6+
* Fix Gem installation on Windows by adding default freetds msys path. Fixes #522
67

78
## 2.1.5
89

ext/tiny_tds/extconf.rb

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

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

0 commit comments

Comments
 (0)