diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-21 13:23:35 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-03-21 13:23:35 +0900 |
| commit | 5764ff074099a682596e09fe705c477261be9d0d (patch) | |
| tree | 879ee788fa47c45a50f46416bf45c8a4a4493821 /lib | |
| parent | 73056aeb2b8e67145ee4bf28cd99a6cbb4224231 (diff) | |
| download | mruby-5764ff074099a682596e09fe705c477261be9d0d.tar.gz mruby-5764ff074099a682596e09fe705c477261be9d0d.zip | |
command.rb: replace `%w()` to plain `[]`.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mruby/build/command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mruby/build/command.rb b/lib/mruby/build/command.rb index dbe3763d9..23a118465 100644 --- a/lib/mruby/build/command.rb +++ b/lib/mruby/build/command.rb @@ -51,7 +51,7 @@ module MRuby @flags = [ENV['CFLAGS'] || []] @source_exts = source_exts @include_paths = ["#{MRUBY_ROOT}/include"] - @defines = %w() + @defines = [] @option_include_path = %q[-I"%s"] @option_define = %q[-D"%s"] @compile_options = %q[%{flags} -o "%{outfile}" -c "%{infile}"] @@ -277,7 +277,7 @@ module MRuby def initialize(build) super @command = 'git' - @flags = %w[] + @flags = [] @clone_options = "clone %{flags} %{url} %{dir}" @pull_options = "--git-dir %{repo_dir}/.git --work-tree %{repo_dir} pull" @checkout_options = "--git-dir %{repo_dir}/.git --work-tree %{repo_dir} checkout %{checksum_hash}" |
