mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-08 19:18:53 +08:00
Copy build_config.rb to build directory because now build_config.rb.lock is created along side it. Define toolchain depending on CC environment variable.
15 lines
398 B
Ruby
15 lines
398 B
Ruby
MRuby::Build.new do |conf|
|
|
toolchain :clang if ENV['CC'].include? "clang"
|
|
toolchain :gcc if ENV['CC'].include? "gcc"
|
|
|
|
# C++ project needs this. Without this, mruby exception does not
|
|
# properly destory C++ object allocated on stack.
|
|
conf.enable_cxx_exception
|
|
|
|
conf.build_dir = ENV['BUILD_DIR']
|
|
|
|
# include the default GEMs
|
|
conf.gembox 'default'
|
|
conf.gem :core => 'mruby-eval'
|
|
end
|