Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 337 Bytes
MRuby::Gem::Specification.new('mruby-thread') do |spec|
spec.license = 'MIT'
spec.authors = 'mattn'
defs = %w[MRB_THREAD_COPY_VALUES]
build.cc.defines += defs
spec.cc.defines+= defs
if build.toolchains.include?("androideabi")
spec.cc.flags << '-DHAVE_PTHREADS'
else
spec.linker.libraries << ['pthread']
end
end