Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You have to specify `TARGET` to specify a configuration, e.g. ``` rake TARGET=host-debug all test ``` When you port `mruby` to a new configuration: 1. copy an existing configuration under `target` directory 2. modify the new configuration file 3. build using the new configuration 4. send PR if you please
- Loading branch information
Showing
18 changed files
with
59 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
MRuby::Build.new('bench') do |conf| | ||
# Gets set by the VS command prompts. | ||
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] | ||
toolchain :visualcpp | ||
else | ||
toolchain :gcc | ||
conf.cc.flags << '-O3' | ||
end | ||
|
||
conf.gembox 'default' | ||
end |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Define cross build settings | ||
MRuby::CrossBuild.new('32bit') do |conf| | ||
toolchain :gcc | ||
|
||
conf.cc.flags << "-m32" | ||
conf.linker.flags << "-m32" | ||
|
||
conf.build_mrbtest_lib_only | ||
|
||
conf.gem 'examples/mrbgems/c_and_ruby_extension_example' | ||
|
||
conf.test_runner.command = 'env' | ||
end |
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
MRuby::Build.new('host-debug') do |conf| | ||
# load specific toolchain settings | ||
|
||
# Gets set by the VS command prompts. | ||
if ENV['VisualStudioVersion'] || ENV['VSINSTALLDIR'] | ||
toolchain :visualcpp | ||
else | ||
toolchain :gcc | ||
end | ||
|
||
enable_debug | ||
|
||
# include the default GEMs | ||
conf.gembox 'full-core' | ||
|
||
# C compiler settings | ||
conf.cc.defines = %w(MRB_ENABLE_DEBUG_HOOK) | ||
|
||
# Generate mruby debugger command (require mruby-eval) | ||
conf.gem :core => "mruby-bin-debugger" | ||
|
||
# bintest | ||
# conf.enable_bintest | ||
end |
This file contains 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
File renamed without changes.
This file contains 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