Commit a2ff17b5 authored by mattn's avatar mattn

Change the way that the DISABLE_GEMS flag is set for vs2012.

parent 21310019
MRuby::Toolchain.new(:vs2012) do |conf| MRuby::Toolchain.new(:vs2012) do |conf|
[conf.cc, conf.cxx].each do |cc| [conf.cc, conf.cxx].each do |cc|
cc.command = ENV['CC'] || 'cl.exe' cc.command = ENV['CC'] || 'cl.exe'
cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /D_DEBUG /MDd /Zi /Od /RTC1 /DDISABLE_GEMS /DHAVE_STRING_H /DNO_GETTIMEOFDAY /D_CRT_SECURE_NO_WARNINGS)] cc.flags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /D_DEBUG /MDd /Zi /Od /RTC1 /DHAVE_STRING_H /DNO_GETTIMEOFDAY /D_CRT_SECURE_NO_WARNINGS)]
cc.include_paths = ["#{root}/include"] cc.include_paths = ["#{root}/include"]
cc.defines = %w(DISABLE_GEMS) cc.defines = %w(DISABLE_GEMS)
cc.option_include_path = '/I%s' cc.option_include_path = '/I%s'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment