Skip to content

Commit cdf322f

Browse files
authored
Merge pull request #20 from abinoam/fix_19
Fix #19 - flatten before gsub
2 parents a08fb71 + fe10789 commit cdf322f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/mruby_component/esp32_build_config.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
cc.include_paths << ENV["COMPONENT_INCLUDES"].split(' ')
3333

3434
cc.flags << '-Wno-maybe-uninitialized'
35-
cc.flags.collect! { |x| x.gsub('-MP', '') }
35+
cc.flags = cc.flags.flatten.collect { |x| x.gsub('-MP', '') }
3636

3737
cc.defines << %w(MRB_HEAP_PAGE_SIZE=64)
3838
cc.defines << %w(MRB_USE_IV_SEGLIST)
@@ -47,7 +47,7 @@
4747
conf.cxx do |cxx|
4848
cxx.include_paths = conf.cc.include_paths.dup
4949

50-
cxx.flags.collect! { |x| x.gsub('-MP', '') }
50+
cxx.flags = cxx.flags.flatten.collect { |x| x.gsub('-MP', '') }
5151

5252
cxx.defines = conf.cc.defines.dup
5353
end

0 commit comments

Comments
 (0)