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')
|