Skip to content

Commit 873f54b

Browse files
committed
Fix c++ compiler for windows platforms
x86_64-w64-mingw32-cpp,i686-w64-mingw32-cpp does not compile c++ sourcese.
1 parent 0f54c5f commit 873f54b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def gem_config(conf)
6767
[conf.cc, conf.linker].each do |cc|
6868
cc.command = 'x86_64-w64-mingw32-gcc'
6969
end
70-
conf.cxx.command = 'x86_64-w64-mingw32-cpp'
70+
conf.cxx.command = 'x86_64-w64-mingw32-g++'
7171
conf.archiver.command = 'x86_64-w64-mingw32-gcc-ar'
7272
conf.exts.executable = ".exe"
7373

@@ -83,7 +83,7 @@ def gem_config(conf)
8383
[conf.cc, conf.linker].each do |cc|
8484
cc.command = 'i686-w64-mingw32-gcc'
8585
end
86-
conf.cxx.command = 'i686-w64-mingw32-cpp'
86+
conf.cxx.command = 'i686-w64-mingw32-g++'
8787
conf.archiver.command = 'i686-w64-mingw32-gcc-ar'
8888
conf.exts.executable = ".exe"
8989

0 commit comments

Comments
 (0)