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
9cde9673
Unverified
Commit
9cde9673
authored
Dec 13, 2019
by
take-cheeze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable sanitizer in travis test
parent
87809742
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
travis_config.rb
travis_config.rb
+8
-3
No files found.
travis_config.rb
View file @
9cde9673
...
...
@@ -4,7 +4,8 @@ MRuby::Build.new('debug') do |conf|
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
flags
+=
%w(-Werror=declaration-after-statement)
conf
.
cc
.
flags
+=
%w(-Werror=declaration-after-statement -fsanitize=address,undefined)
conf
.
linker
.
flags
+=
%W(-fsanitize=address,undefined)
conf
.
compilers
.
each
do
|
c
|
c
.
defines
+=
%w(MRB_GC_STRESS MRB_GC_FIXED_ARENA MRB_METHOD_CACHE)
end
...
...
@@ -19,6 +20,8 @@ MRuby::Build.new('full-debug') do |conf|
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
defines
+=
%w(MRB_ENABLE_DEBUG_HOOK)
conf
.
cc
.
flags
+=
%w(-fsanitize=address,undefined)
conf
.
linker
.
flags
+=
%W(-fsanitize=address,undefined)
conf
.
enable_test
end
...
...
@@ -28,7 +31,8 @@ MRuby::Build.new do |conf|
# include all core GEMs
conf
.
gembox
'full-core'
conf
.
cc
.
flags
+=
%w(-Werror=declaration-after-statement)
conf
.
cc
.
flags
+=
%w(-Werror=declaration-after-statement -fsanitize=address,undefined)
conf
.
linker
.
flags
+=
%W(-fsanitize=address,undefined)
conf
.
compilers
.
each
do
|
c
|
c
.
defines
+=
%w(MRB_GC_FIXED_ARENA)
end
...
...
@@ -40,7 +44,8 @@ MRuby::Build.new('cxx_abi') do |conf|
toolchain
:gcc
conf
.
gembox
'full-core'
conf
.
cc
.
flags
+=
%w(-fpermissive)
conf
.
cc
.
flags
+=
%w(-fpermissive -fsanitize=address,undefined)
conf
.
linker
.
flags
+=
%W(-fsanitize=address,undefined)
conf
.
compilers
.
each
do
|
c
|
c
.
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