mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-09 20:21:08 +00:00
* Improve Rakefile * Remove intermediate files * Remove unnecessary manipulations from extconf.rb * Add README and LINCENSE to source files * Manage ext source files using YAML file * Use extsources.yaml to include files into gem package file * Add git-managed source files to build dependency * Add test task * Download model for test if not exists * Add test for build * Ignore gem package directory * Enable GitHub action for Ruby binding * Fix model name * Build lib file for test * Use extension for each platform * Use extension for each platform on testing * Move built lib file rather than copy * Add intermediate files to clean targets
16 lines
379 B
Ruby
16 lines
379 B
Ruby
require 'mkmf'
|
|
|
|
# need to use c++ compiler flags
|
|
$CXXFLAGS << ' -std=c++11'
|
|
# Set to true when building binary gems
|
|
if enable_config('static-stdlib', false)
|
|
$LDFLAGS << ' -static-libgcc -static-libstdc++'
|
|
end
|
|
|
|
if enable_config('march-tune-native', false)
|
|
$CFLAGS << ' -march=native -mtune=native'
|
|
$CXXFLAGS << ' -march=native -mtune=native'
|
|
end
|
|
|
|
create_makefile('whisper')
|