Skip to content

Commit 9d8978f

Browse files
committed
On windows, exe is not poissible to export all symbols
1 parent 323bbc9 commit 9d8978f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mrbgem.rake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ MRuby::Gem::Specification.new('mruby-cfunc') do |spec|
3939

4040
spec.linker.libraries << %w(ffi dl pthread)
4141

42-
if `uname`.chomp == 'Darwin'
42+
if ENV['OS'] == 'Windows_NT'
43+
spec.cc.flags << %w(-pthread)
44+
elsif `uname`.chomp == 'Darwin'
4345
spec.cc.flags << %w(-pthread)
4446
spec.linker.flags << %w(-Wl,-allow_stack_execute -all_load)
4547
else

0 commit comments

Comments
 (0)