-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild_config.rb
More file actions
23 lines (23 loc) · 976 Bytes
/
build_config.rb
File metadata and controls
23 lines (23 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MRuby::Build.new do |conf|
toolchain :gcc
def for_windows?
('A'..'Z').to_a.any? { |vol| Dir.exist?("#{vol}:") }
end
unless for_windows?
#conf.enable_sanitizer "address,undefined"
end
#conf.cxx.flags << '-fno-omit-frame-pointer' << '-g3' << '-ggdb3' << '-Og'
#conf.cc.flags << '-fno-omit-frame-pointer' << '-g3' << '-ggdb3' << '-Og'
#conf.enable_debug
conf.cc.defines << 'MRB_UTF8_STRING' << 'MRB_HIGH_PROFILE'
conf.cxx.defines << 'MRB_UTF8_STRING' << 'MRB_HIGH_PROFILE'
conf.enable_test
conf.gembox 'default'
conf.cc.flags << '-O3' << '-march=native' << '-g -fno-omit-frame-pointer'
conf.cxx.flags << '-O3' << '-march=native' << '-g -fno-omit-frame-pointer'
conf.gem github: 'Asmod4n/mruby-benchmark-plus', branch: "main"
conf.gem mgem: 'mruby-simplemsgpack'
conf.gem mgem: 'mruby-fast-json'
conf.gem mgem: 'mruby-proc-irep-ext'
conf.gem File.expand_path(File.dirname(__FILE__))
end