anchor.diff:  end
   
   local function look_for_link_libraries(directory)
  +	-- MinGW does not generate .lib, nor needs it to link, but MSVC does,
  +	-- so .lib must be listed first to ensure they are found first if present,
  +	-- to prevent MSVC trying to link to a .dll, which won't work.
  +	local names = {S"lua$LUA_VERSION.lib", S"lua$LUA_SHORTV.lib", S"lua$LUA_VERSION.dll", S"lua$LUA_SHORTV.dll", "liblua.dll.a"}
   	local directories
   	if vars.LUA_LIBDIR then
   		directories = {vars.LUA_LIBDIR}
  
positive.code: 	end
  
  	if vars.LUA_LIBDIR then
  		die(S"link library (one of; $LUA_LIB_NAMES) not found in $LUA_LIBDIR")
  	end
  	return false
  end
  
negative.code: 	end
  
  	for _, dir in ipairs(directories) do
  		for _, name in ipairs(names) do
  			local full_name = dir .. "\\" .. name
  			print("    checking for " .. full_name)
  			if exists(full_name) then
  