summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2015-06-24 09:31:22 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2015-06-24 09:31:22 +0900
commitfb5af4de2ca14276740e7cf51cc1637f9b221a64 (patch)
treee9c9db67e7706ff9b841a0aa63eed071f81e7746 /tasks
parentacb504fa0d9fb98409f297d2bab7f503e46ccef5 (diff)
parent0006a8cd4a15e52de7bb02fc89287183f2ef2209 (diff)
downloadmruby-fb5af4de2ca14276740e7cf51cc1637f9b221a64.tar.gz
mruby-fb5af4de2ca14276740e7cf51cc1637f9b221a64.zip
Merge pull request #2857 from hone/cross_compile_targets
provide targets for building native extensions during CrossBuild
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mruby_build.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake
index 50bed0fbe..947b4ba77 100644
--- a/tasks/mruby_build.rake
+++ b/tasks/mruby_build.rake
@@ -283,6 +283,10 @@ EOS
class CrossBuild < Build
attr_block %w(test_runner)
+ # cross compiling targets for building native extensions.
+ # host - arch of where the built binary will run
+ # build - arch of the machine building the binary
+ attr_accessor :host_target, :build_target
def initialize(name, build_dir=nil, &block)
@test_runner = Command::CrossTestRunner.new(self)