This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From e36e2760f2c168c179a35cc8bf7a4103ce523f61 Mon Sep 17 00:00:00 2001 | |
| From: Rob Lyman <waveformdelta@gmail.com> | |
| Date: Sat, 20 Jan 2018 13:52:04 -0600 | |
| Subject: [PATCH 1/2] Updated support for integer division behavior | |
| This adds an adapted fix to give conditional integer division support, | |
| based on the environment variable MRB_INTEGER_DIVISION. This adapts from | |
| the previous fix to the latest stable mRuby branch, taking into | |
| account their new MRB_WITHOUT_FLOAT environment variable. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Sample usage | |
| MRuby::CrossBuild.new('emscripten') do |conf| | |
| toolchain :emscripten | |
| # conf.gem :github => 'mattn/mruby-onig-regexp' | |
| # conf.gem :github => 'take-cheeze/mruby-marshal' | |
| conf.gembox 'default' | |
| conf.cc do |cc| | |
| cc.flags = [ENV['CFLAGS'] || %w()] | |
| cc.compile_options = "%{flags} -O3 -MMD -o %{outfile} -c %{infile} -I$HOME/dev/onig/src" |
NewerOlder