Created
April 9, 2014 13:41
-
-
Save keizo042/10271934 to your computer and use it in GitHub Desktop.
understand for why MRUBY_CONFIG use ternary operator .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'pp' | |
# encoding: utf-8 | |
# Build description. | |
# basic build file for mruby | |
p MRUBY_ROOT = File.dirname(File.expand_path(__FILE__)) | |
p MRUBY_BUILD_HOST_IS_CYGWIN = RUBY_PLATFORM.include?('cygwin') | |
# load build systems | |
#p load "#{MRUBY_ROOT}/tasks/ruby_ext.rake" | |
#p load "#{MRUBY_ROOT}/tasks/mruby_build.rake" | |
#p load "#{MRUBY_ROOT}/tasks/mrbgem_spec.rake" | |
# load configuration file | |
MRUBY_CONFIG = (ENV['MRUBY_CONFIG'] && ENV['MRUBY_CONFIG'] != '') ? ENV['MRUBY_CONFIG'] : "#{MRUBY_ROOT}/build_config.rb" | |
puts "=================" | |
pp (ENV['MRUBY_CONFIG'] && ENV['MRUBY_CONFIG'] != '') | |
pp (ENV['MRUBY_CONFIG']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment