Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
f07ba44c
Commit
f07ba44c
authored
Nov 24, 2013
by
take_cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add enable_debug method to MRuby::Build and build debug version in travis-ci
parent
a2e0c6ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
tasks/mruby_build.rake
tasks/mruby_build.rake
+5
-0
travis_config.rb
travis_config.rb
+10
-1
No files found.
tasks/mruby_build.rake
View file @
f07ba44c
...
...
@@ -87,6 +87,11 @@ module MRuby
MRuby
.
targets
[
@name
].
instance_eval
(
&
block
)
end
def
enable_debug
compilers
.
each
{
|
c
|
c
.
defines
+=
%w(MRB_DEBUG)
}
@mrbc
.
compile_options
+=
' -g'
end
def
toolchain
(
name
)
tc
=
Toolchain
.
toolchains
[
name
.
to_s
]
fail
"Unknown
#{
name
}
toolchain"
unless
tc
...
...
travis_config.rb
View file @
f07ba44c
MRuby
::
Build
.
new
(
'debug'
)
do
|
conf
|
toolchain
:gcc
enable_debug
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
defines
=
%w(MRB_GC_FIXED_ARENA)
end
MRuby
::
Build
.
new
do
|
conf
|
toolchain
:gcc
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
defines
=
%w(MRB_
DEBUG MRB_
GC_FIXED_ARENA)
conf
.
cc
.
defines
=
%w(MRB_GC_FIXED_ARENA)
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment