Skip to content

Commit

Permalink
Merge pull request #5080 from wataash/fix-dep-read
Browse files Browse the repository at this point in the history
Fix skipping reading file
  • Loading branch information
matz committed Sep 17, 2020
2 parents 9757616 + 069d9bb commit 758f8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mruby/build/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_dependencies(file)
file = file.ext('d') unless File.extname(file) == '.d'
return [MRUBY_CONFIG] unless File.exist?(file)

deps = "".gsub("\\\n ", "").split("\n").map do |dep_line|
deps = File.read(file).gsub("\\\n ", "").split("\n").map do |dep_line|
# dep_line:
# - "/build/host/src/array.o: /src/array.c /include/mruby/common.h ..."
# - ""
Expand Down

0 comments on commit 758f8f4

Please sign in to comment.