ext/libyajl2/extconf.rb in libyajl2-0.0.3 vs ext/libyajl2/extconf.rb in libyajl2-0.0.4
- old
+ new
@@ -35,11 +35,14 @@
]
end
def self.setup_env
if windows?
- ENV['CC'] = 'gcc.exe'
- ENV['CXX'] = 'g++.exe'
+ ENV['PATH'] ||= 'C:\Ruby\DevKit\bin;C:\Ruby\DevKit\mingw\bin;' + ENV['PATH']
+ ENV['RI_DEVKIT'] ||= 'C:\Ruby\DevKit'
+ ENV['CC'] ||= 'gcc'
+ ENV['CPP'] ||= 'cpp'
+ ENV['CXX'] ||= 'g++'
end
end
def self.system(*args)
print("-> #{args.join(' ')}\n")