mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add host_target/build_target options for CrossBuild'ng native extensions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user