mirror of https://github.com/k0kubun/xremap
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
502 B
Ruby
22 lines
502 B
Ruby
MRuby::Build.new do |conf|
|
|
toolchain :gcc
|
|
|
|
conf.gembox 'default'
|
|
conf.gem File.expand_path(File.dirname(__FILE__))
|
|
|
|
conf.instance_eval do
|
|
# Allow showing backtrace.
|
|
@mrbc.compile_options += ' -g'
|
|
end
|
|
|
|
# Never support Visual C++.
|
|
# https://github.com/mruby/mruby/blob/1.2.0/CONTRIBUTING.md#comply-with-c99-isoiec-98991999
|
|
conf.cc.flags.first.reject! do |flag|
|
|
flag == '-Wdeclaration-after-statement'
|
|
end
|
|
|
|
conf.linker do |linker|
|
|
linker.libraries += %w(X11)
|
|
end
|
|
end
|