Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210360228
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210360228
Commits
bfb84c3d
Commit
bfb84c3d
authored
6 years ago
by
dutor
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add partial support to ASAN (#55)
parent
15b2ca6b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+15
-2
15 additions, 2 deletions
CMakeLists.txt
src/parser/test/ScannerTest.cpp
+2
-1
2 additions, 1 deletion
src/parser/test/ScannerTest.cpp
with
17 additions
and
3 deletions
CMakeLists.txt
+
15
−
2
View file @
bfb84c3d
...
...
@@ -92,6 +92,9 @@ if(NOT ${NEBULA_GPERF_BIN_DIR} STREQUAL "")
endif
()
option
(
sanitize
"Whether to turn AddressSanitizer ON or OFF"
OFF
)
message
(
STATUS
"CMAKE_INCLUDE_PATH: "
${
CMAKE_INCLUDE_PATH
}
)
message
(
STATUS
"CMAKE_LIBRARY_PATH: "
${
CMAKE_LIBRARY_PATH
}
)
message
(
STATUS
"CMAKE_PROGRAM_PATH: "
${
CMAKE_PROGRAM_PATH
}
)
...
...
@@ -99,19 +102,29 @@ message(STATUS "CMAKE_PROGRAM_PATH: " ${CMAKE_PROGRAM_PATH})
find_package
(
Boost REQUIRED
)
find_package
(
OpenSSL REQUIRED
)
find_package
(
Krb5 REQUIRED gssapi
)
find_package
(
PCHSupport
)
find_package
(
GPERF 2.8 REQUIRED
)
find_package
(
Libunwind REQUIRED
)
find_package
(
BISON REQUIRED
)
find_package
(
FLEX REQUIRED
)
find_package
(
Readline REQUIRED
)
if
(
NOT sanitize
)
find_package
(
PCHSupport
)
add_compile_options
(
-Winvalid-pch
)
endif
()
add_compile_options
(
-Winvalid-pch
)
add_compile_options
(
-Wall
)
add_compile_options
(
-Werror
)
add_compile_options
(
-Wunused-parameter
)
add_compile_options
(
-Wshadow
)
if
(
sanitize
)
add_compile_options
(
-fsanitize=address
)
add_compile_options
(
-g
)
add_compile_options
(
-fno-omit-frame-pointer
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-fsanitize=address"
)
endif
()
include_directories
(
SYSTEM
${
NEBULA_HOME
}
/third-party/bzip2/_install/include
)
include_directories
(
SYSTEM
${
NEBULA_HOME
}
/third-party/double-conversion/_install/include
)
include_directories
(
SYSTEM
${
NEBULA_HOME
}
/third-party/fatal/_install/include
)
...
...
This diff is collapsed.
Click to expand it.
src/parser/test/ScannerTest.cpp
+
2
−
1
View file @
bfb84c3d
...
...
@@ -19,7 +19,8 @@ namespace nebula {
using
semantic_type
=
nebula
::
GraphParser
::
semantic_type
;
static
auto
checkSemanticValue
(
const
char
*
expected
,
semantic_type
*
sv
)
{
auto
&
actual
=
*
sv
->
strval
;
auto
actual
=
*
sv
->
strval
;
delete
sv
->
strval
;
if
(
expected
!=
actual
)
{
return
AssertionFailure
()
<<
"Semantic value not match, "
<<
"expected: "
<<
expected
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment