On 2019/11/10 16:33, Frederic Cambus wrote:
> Hi ports@,
>
> Here is a diff to update mruby to 2.0.1.
>
> Notable changes:
>
> - Switch to using GH_ directives to fetch the distfile
> - Point HOMEPAGE to https://mruby.org/
> - Upstream now enable setting MRB_ENDIAN_BIG on big endian architectures,
> so we only need to add the missing <endian.h> header
>
> Tested on amd64, test suite passes without errors.
>
> Comments? OK?
OK for the update.
Not new, but it overrides CFLAGS by adding -g3 -O0 ..
lib/mruby/build.rb
105 def debug_enabled?
106 @enable_debug
107 end
108
109 def enable_debug
110 compilers.each do |c|
111 c.defines += %w(MRB_DEBUG)
112 if toolchains.any? { |toolchain| toolchain == "gcc" }
113 c.flags += %w(-g3 -O0)
114 end
115 end
116 @mrbc.compile_options += ' -g'
117
118 @enable_debug = true
119 end