Last active
November 9, 2017 18:02
-
-
Save rickhull/ede15cf7cdd7aa53721ea5ee30a84bbf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
vagrant@contrib-jessie:~/mruby/sleep_world$ cat build_config.rb | |
puts "BUILD CONFIG: #{__FILE__}" | |
MRuby::Build.new do |conf| | |
toolchain :gcc | |
conf.gem git: 'https://github.com/matsumotory/mruby-sleep' | |
end | |
vagrant@contrib-jessie:~/mruby/sleep_world$ cd mruby_src/ | |
vagrant@contrib-jessie:~/mruby/sleep_world/mruby_src$ ./minirake | |
(in /home/vagrant/mruby/sleep_world/mruby_src) | |
BUILD CONFIG: /home/vagrant/mruby/sleep_world/build_config.rb | |
CC src/hash.c -> build/host/src/hash.o | |
CC src/class.c -> build/host/src/class.o | |
CC src/compar.c -> build/host/src/compar.o | |
CC src/version.c -> build/host/src/version.o | |
CC src/pool.c -> build/host/src/pool.o | |
CC src/error.c -> build/host/src/error.o | |
CC src/gc.c -> build/host/src/gc.o | |
CC src/range.c -> build/host/src/range.o | |
CC src/vm.c -> build/host/src/vm.o | |
CC src/load.c -> build/host/src/load.o | |
CC src/array.c -> build/host/src/array.o | |
CC src/backtrace.c -> build/host/src/backtrace.o | |
CC src/fmt_fp.c -> build/host/src/fmt_fp.o | |
CC src/variable.c -> build/host/src/variable.o | |
CC src/kernel.c -> build/host/src/kernel.o | |
CC src/proc.c -> build/host/src/proc.o | |
CC src/print.c -> build/host/src/print.o | |
CC src/object.c -> build/host/src/object.o | |
CC src/string.c -> build/host/src/string.o | |
CC src/debug.c -> build/host/src/debug.o | |
CC src/crc.c -> build/host/src/crc.o | |
CC src/codedump.c -> build/host/src/codedump.o | |
CC src/state.c -> build/host/src/state.o | |
CC src/etc.c -> build/host/src/etc.o | |
CC src/numeric.c -> build/host/src/numeric.o | |
CC src/enum.c -> build/host/src/enum.o | |
CC src/symbol.c -> build/host/src/symbol.o | |
CC src/dump.c -> build/host/src/dump.o | |
CC src/init.c -> build/host/src/init.o | |
CC mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.c -> build/host/mrbgems/mruby-bin-mrbc/tools/mrbc/mrbc.o | |
CC mrbgems/mruby-compiler/core/codegen.c -> build/host/mrbgems/mruby-compiler/core/codegen.o | |
AR build/host/lib/libmruby_core.a | |
LD build/host/bin/mrbc | |
GEN *.rb -> build/host/mrblib/mrblib.c | |
MRBC mrblib/00class.rb | |
MRBC mrblib/10error.rb | |
MRBC mrblib/array.rb | |
MRBC mrblib/compar.rb | |
MRBC mrblib/enum.rb | |
MRBC mrblib/hash.rb | |
MRBC mrblib/kernel.rb | |
MRBC mrblib/numeric.rb | |
MRBC mrblib/range.rb | |
MRBC mrblib/string.rb | |
CC build/host/mrblib/mrblib.c -> build/host/mrblib/mrblib.o | |
CC build/mrbgems/mruby-sleep/src/mrb_sleep.c -> build/host/mrbgems/mruby-sleep/src/mrb_sleep.o | |
CC build/host/mrbgems/mruby-sleep/gem_init.c -> build/host/mrbgems/mruby-sleep/gem_init.o | |
CC build/host/mrbgems/gem_init.c -> build/host/mrbgems/gem_init.o | |
AR build/host/lib/libmruby.a | |
Build summary: | |
================================================ | |
Config Name: host | |
Output Directory: build/host | |
Binaries: mrbc | |
Included Gems: | |
mruby-sleep - 0.0.1 | |
mruby-compiler - mruby compiler library | |
mruby-bin-mrbc - mruby compiler executable | |
================================================ | |
vagrant@contrib-jessie:~/mruby/sleep_world/mruby_src$ cd .. | |
vagrant@contrib-jessie:~/mruby/sleep_world$ mruby_src/bin/mruby --version | |
mruby 1.3.0 (2017-7-4) | |
vagrant@contrib-jessie:~/mruby/sleep_world$ mruby_src/bin/mruby hello_world.rb | |
Foo.bar = Foo.bar | |
f.bar = Foo#bar | |
trace: | |
[0] hello_world.rb:16 | |
hello_world.rb:16:uninitialized constant Sleep (NameError) | |
vagrant@contrib-jessie:~/mruby/sleep_world$ cat hello_world.rb | |
class Foo | |
def self.bar | |
'Foo.bar' | |
end | |
def bar | |
'Foo#bar' | |
end | |
end | |
if __FILE__ == $0 | |
puts "Foo.bar = #{Foo.bar}" | |
f = Foo.new | |
puts "f.bar = #{f.bar}" | |
Sleep.sleep 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment