summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/class.c10
-rw-r--r--tasks/mruby_build.rake4
2 files changed, 9 insertions, 5 deletions
diff --git a/src/class.c b/src/class.c
index 35c3aa040..05b549b3e 100644
--- a/src/class.c
+++ b/src/class.c
@@ -1174,11 +1174,11 @@ mrb_instance_alloc(mrb_state *mrb, mrb_value cv)
* call-seq:
* class.new(args, ...) -> obj
*
- * Calls <code>allocate</code> to create a new object of
- * <i>class</i>'s class, then invokes that object's
- * <code>initialize</code> method, passing it <i>args</i>.
- * This is the method that ends up getting called whenever
- * an object is constructed using .new.
+ * Creates a new object of <i>class</i>'s class, then
+ * invokes that object's <code>initialize</code> method,
+ * passing it <i>args</i>. This is the method that ends
+ * up getting called whenever an object is constructed using
+ * `.new`.
*
*/
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)