# Define cross build settings
MRuby::CrossBuild.new('pcat') do |conf|
toolchain :gcc
# C compiler settings
conf.cc do |cc|
cc.command = "#{ENV['GNUi386']}/bin/gcc386"
cc.flags = "-O2 -fno-strength-reduce -mpreferred-stack-boundary=2 -Wall"
cc.include_paths = ["#{root}/include", "#{ENV['BD']}/include", "../src/posix_include"]
cc.defines = %w(DISABLE_STDIO PCAT)
end
# Archiver settings
conf.archiver do |archiver|
archiver.command = "#{ENV['GNUi386']}/bin/ar"
archiver.archive_options = 'rvl %{outfile} %{objs}'
end
conf.build_mrbtest_lib_only
@bins = [] # for disable to link mrbc for target.
end