Skip to content

Instantly share code, notes, and snippets.

@keizo042
Created April 9, 2014 13:41
Show Gist options
  • Save keizo042/10271934 to your computer and use it in GitHub Desktop.
Save keizo042/10271934 to your computer and use it in GitHub Desktop.
understand for why MRUBY_CONFIG use ternary operator .
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