Skip to content

Commit 4253e67

Browse files
committed
Remove unexpected newlines in win32_vk rules
1 parent a44ab18 commit 4253e67

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎ext/io/console/extconf.rb‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@
6363
end
6464
end
6565
have_func("rb_prepend_module") # not exported by TruffleRuby
66-
vk_tool = find_executable("gperf")
66+
67+
if find_executable("gperf") and vk_mk = (File.read("#$srcdir/win32_vk.mk") rescue nil)
68+
$cleanfiles.concat(%w'win32_vk.inc win32_vk.chksum')
69+
end
70+
6771
create_makefile("io/console") {|conf|
6872
conf << "###\n" "all: # the default target\n"
6973
if vk_header
@@ -72,11 +76,11 @@
7276
console.#$OBJEXT: $(VK_HEADER)
7377
MK
7478
end
75-
if vk_tool and vk_mk = (File.read("#$srcdir/win32_vk.mk") rescue nil)
79+
if vk_mk
7680
unless conf.any? {|c| /^ *top_srcdir *=/.match?(c)}
7781
conf << "top_srcdir = $(srcdir)/../../..\n"
7882
end
79-
conf.concat(depend_rules(vk_mk))
83+
conf << depend_rules(vk_mk).join("")
8084
end
8185
conf
8286
}

0 commit comments

Comments
 (0)