1
0
Fork 0
mirror of https://github.com/tailix/mrubyvisor.git synced 2024-11-11 13:50:47 -05:00
mrubyvisor/build_config.rb
Alex Kotov 7dbeb57b89
Revert "Disable Ruby gems"
This reverts commit 8eb95a0a9ca013785c78fc1460fc2606e39f38fa.
2022-11-27 19:41:39 +04:00

26 lines
671 B
Ruby

ROOT_DIR = File.expand_path(__dir__).freeze
DEST_DIR = File.join(ROOT_DIR, 'dest').freeze
MRuby::CrossBuild.new 'mrubyvisor' do |conf|
conf.toolchain :gcc
conf.cc.defines <<
'MRB_NO_BOXING' <<
'MRB_NO_FLOAT' <<
'MRB_NO_STDIO'
conf.cc.flags <<
'-Wall' <<
'-Wextra' <<
'-ffreestanding' <<
'-nostdlib' <<
'-fno-pic' <<
'-fno-stack-protector'
conf.cc.include_paths << File.join(DEST_DIR, 'include')
conf.linker.library_paths << File.join(DEST_DIR, 'lib')
conf.archiver.command = ENV['CROSS_AR']
conf.cc.command = ENV['CROSS_CC']
conf.linker.command = ENV['CROSS_LD']
end