Merge pull request #2857 from hone/cross_compile_targets

provide targets for building native extensions during CrossBuild
This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-06-24 09:31:22 +09:00
+4
View File
@@ -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)