Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
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
json
Commits
010ea126
Commit
010ea126
authored
Dec 25, 2016
by
Daniel Cohen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
going to try clang_sanitize with libstdc++ with g++-6 implementation
Conflicts: .travis.yml Makefile
parent
d7029c37
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
.travis.yml
.travis.yml
+14
-8
Makefile
Makefile
+2
-1
No files found.
.travis.yml
View file @
010ea126
...
...
@@ -42,14 +42,20 @@ matrix:
-
make check TEST_PREFIX="valgrind --error-exitcode=1 --leak-check=full " TEST_PATTERN=""
# cLang sanitizer
#- os: linux
# env:
# - LLVM_VERSION=3.8.1
# - SPECIAL=sanitizer
# compiler: clang
# before_script:
# - make clang_sanitize
# note: sadly clang's libc++ has errors when running with sanitize,
# so we use clang with gcc's libstdc++ which doesn't give those error.
# that's why we need to install g++-6 to get the lastest version
-
os
:
linux
env
:
-
LLVM_VERSION=3.8.1
-
SPECIAL=sanitizer
addons
:
apt
:
sources
:
[
'
ubuntu-toolchain-r-test'
]
packages
:
g++-6
compiler
:
clang
before_script
:
-
make clang_sanitize
# cppcheck
...
...
Makefile
View file @
010ea126
...
...
@@ -92,8 +92,9 @@ fuzzing-stop:
cppcheck
:
cppcheck
--enable
=
warning
--inconclusive
--force
--std
=
c++11 src/json.hpp
--error-exitcode
=
1
# run clang sanitize (we are overrding the CXXFLAGS provided by travis in order to use gcc's libstdc++)
clang_sanitize
:
clean
CXX
=
clang++
CXXFLAGS
=
"-g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer"
$(MAKE)
CXX
=
clang++
CXXFLAGS
=
"-g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer"
$(MAKE)
check
-C
test
##########################################################################
...
...
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