-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_config.rb
49 lines (39 loc) · 923 Bytes
/
test_config.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
MRuby::Lockfile.disable rescue nil
unless MRuby::Build.method_defined? :defines
module MRuby
class Build
def defines
conf = self
proxy = Object.new
proxy.define_singleton_method(:<<, &->(*defs) {
conf.compilers.each { |cc| cc.defines << defs }
proxy
})
proxy
end
end
end
end
MRuby::Build.new("host", "build") do |conf|
toolchain :clang
enable_debug
enable_test
defines << %w(MRB_STR_LENGTH_MAX='(16UL<<20)')
gem core: "mruby-print"
gem core: "mruby-bin-mirb"
gem core: "mruby-bin-mruby"
gem "."
end
MRuby::Build.new("host++", "build") do |conf|
toolchain :clang
enable_debug
enable_test
enable_cxx_abi
defines << %w(MRB_STR_LENGTH_MAX='(16UL<<20)')
cc.flags << "-std=c++11"
cxx.flags << "-std=c++11"
gem core: "mruby-print"
gem core: "mruby-bin-mrbc"
gem core: "mruby-bin-mruby"
gem "."
end