ext/fiddle/win32/libffi-config.rb in fiddle-1.0.0 vs ext/fiddle/win32/libffi-config.rb in fiddle-1.0.1
- old
+ new
@@ -30,10 +30,10 @@
conf['VERSION'] = version
break
end
end
-builddir = srcdir == "." ? enable['builddir'] : "."
+builddir = srcdir == "." ? (enable['builddir'] || ".") : "."
conf['TARGET'] = /^x64/ =~ host ? "X86_WIN64" : "X86_WIN32"
FileUtils.mkdir_p([builddir, "#{builddir}/include", "#{builddir}/src/x86"])
FileUtils.cp("#{basedir}/fficonfig.h", ".", preserve: true)