summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/fiddle/extconf.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
index a05eccf008d..1adbc11ecaf 100644
--- a/ext/fiddle/extconf.rb
+++ b/ext/fiddle/extconf.rb
@@ -46,6 +46,9 @@ begin
libffi.ldflags = RbConfig.expand("$(LDFLAGS) #{libpathflag([relative_from($topdir, "..")])} #{$LIBRUBYARG}")
libffi.arch = RbConfig::CONFIG['host']
if $mswin
+ unless find_executable(as = /x64/ =~ libffi.arch ? "ml64" : "ml")
+ raise "missing #{as} command."
+ end
$defs << "-DFFI_BUILDING"
libffi_config = "#{relative_from($srcdir, '..')}/win32/libffi-config.rb"
config = CONFIG.merge("top_srcdir" => $top_srcdir)