http://sourceforge.jp/users/ornse01/pf/mruby_brightv_hello/scm/blobs/45103246e7f332c6e611ee7ce0340219508d4d37/src/build_config.rb から抜きだし

Format
Ruby
Post date
2014-07-22 02:04
Période de publication
Illimité
  1. # Define cross build settings
  2. MRuby::CrossBuild.new('pcat') do |conf|
  3. toolchain :gcc
  4. # C compiler settings
  5. conf.cc do |cc|
  6. cc.command = "#{ENV['GNUi386']}/bin/gcc386"
  7. cc.flags = "-O2 -fno-strength-reduce -mpreferred-stack-boundary=2 -Wall"
  8. cc.include_paths = ["#{root}/include", "#{ENV['BD']}/include", "../src/posix_include"]
  9. cc.defines = %w(DISABLE_STDIO PCAT)
  10. end
  11. # Archiver settings
  12. conf.archiver do |archiver|
  13. archiver.command = "#{ENV['GNUi386']}/bin/ar"
  14. archiver.archive_options = 'rvl %{outfile} %{objs}'
  15. end
  16. conf.build_mrbtest_lib_only
  17. @bins = [] # for disable to link mrbc for target.
  18. end
Télécharger Printable view

URL of this paste

Embed with JavaScript

Embed with iframe

Raw text