File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,16 @@ def make(mrbc_path)
52
52
hal_bak_path = "#{ pwd } /#{ config [ 'mrubyc_src_dir' ] } /~hal"
53
53
FileUtils . mv ( hal_path , hal_bak_path ) if FileTest . exist? ( hal_path )
54
54
exit_code = 0
55
+ cc = ENV [ 'CC' ] . length > 0 ? ENV [ 'CC' ] : "gcc"
56
+ qemu = ENV [ 'QEMU' ]
55
57
begin
56
58
FileUtils . ln_sf "#{ pwd } /#{ config [ 'test_tmp_dir' ] } /hal" , "#{ pwd } /#{ config [ 'mrubyc_src_dir' ] } /hal"
57
59
Dir . chdir ( tmp_dir ) do
58
60
[
59
61
"#{ mrbc_path } -B test test.rb" ,
60
62
"#{ mrbc_path } -B models models.rb" ,
61
- "cc -O0 -g3 -Wall -I #{ pwd } /#{ config [ 'mrubyc_src_dir' ] } -o test main.c #{ pwd } /#{ config [ 'mrubyc_src_dir' ] } /*.c #{ pwd } /#{ config [ 'mrubyc_src_dir' ] } /hal/*.c -DMRBC_USE_MATH=1 -DMRBC_USE_HAL_POSIX #{ ENV [ "CFLAGS" ] } #{ ENV [ "LDFLAGS" ] } " ,
62
- "./test"
63
+ "#{ cc } -O0 -g3 -Wall -I #{ pwd } /#{ config [ 'mrubyc_src_dir' ] } -static -o test main.c #{ pwd } /#{ config [ 'mrubyc_src_dir' ] } /*.c #{ pwd } /#{ config [ 'mrubyc_src_dir' ] } /hal/*.c -DMRBC_USE_MATH=1 -DMRBC_USE_HAL_POSIX #{ ENV [ "CFLAGS" ] } #{ ENV [ "LDFLAGS" ] } " ,
64
+ "#{ qemu } ./test"
63
65
] . each do |cmd |
64
66
puts cmd
65
67
puts
Original file line number Diff line number Diff line change 1
1
module Mrubyc
2
2
module Test
3
- VERSION = "0.7.2 "
3
+ VERSION = "0.7.3 "
4
4
end
5
5
end
You can’t perform that action at this time.
0 commit comments