Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-Spgwu-Tiny-Simple
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
Operations
Operations
Metrics
Environments
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
CommunityXG
OpenXG-Spgwu-Tiny-Simple
Commits
83c66036
Commit
83c66036
authored
Sep 30, 2019
by
lionelgo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use valgring with RelWithDebugInfo, use 01 insted of 02
parent
ab5955c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
src/oai_spgwc/CMakeLists.txt
src/oai_spgwc/CMakeLists.txt
+3
-4
src/oai_spgwu/CMakeLists.txt
src/oai_spgwu/CMakeLists.txt
+2
-3
No files found.
src/oai_spgwc/CMakeLists.txt
View file @
83c66036
...
...
@@ -124,11 +124,10 @@ Message("Build type is ${CMAKE_BUILD_TYPE}")
if
(
CMAKE_BUILD_TYPE STREQUAL
"RelWithDebInfo"
)
add_boolean_option
(
LOG_OAI True
"Thread safe logging API"
)
add_boolean_option
(
LOG_OAI_MINIMAL True
"Thread safe logging API, log only levels above NOTICE"
)
SET
(
ASAN asan
)
endif
()
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
add_boolean_option
(
LOG_OAI True
"Thread safe logging API"
)
SET
(
ASAN asan
)
set
(
ASAN
"asan"
)
endif
()
if
(
CMAKE_BUILD_TYPE STREQUAL
""
)
set
(
CMAKE_BUILD_TYPE
"MinSizeRel"
)
...
...
@@ -163,7 +162,7 @@ else (STATIC_LINKING)
set
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS
}
-g -fstack-protector-all -DMALLOC_CHECK_=3 -DINFO_IS_ON=1 -DDEBUG_IS_ON=1 -DTRACE_IS_ON=1 -O0 -fsanitize=address -fno-omit-frame-pointer"
)
endif
(
STATIC_LINKING
)
set
(
CMAKE_C_FLAGS_RELEASE
"
${
CMAKE_C_FLAGS
}
-O2 -fno-omit-frame-pointer -s -DINFO_IS_ON=1 "
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS
}
-g -O
2
-DINFO_IS_ON=1 "
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS
}
-g -O
1
-DINFO_IS_ON=1 "
)
set
(
CMAKE_C_FLAGS_MINSIZEREL
"
${
CMAKE_C_FLAGS
}
-Os -s"
)
if
(
STATIC_LINKING
)
...
...
@@ -172,7 +171,7 @@ else(STATIC_LINKING)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -g -fstack-protector-all -DMALLOC_CHECK_=3 -DINFO_IS_ON=1 -DDEBUG_IS_ON=1 -DTRACE_IS_ON=1 -O0 -fsanitize=address -fno-omit-frame-pointer"
)
endif
(
STATIC_LINKING
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -O2 -fno-omit-frame-pointer -s -DINFO_IS_ON=1"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -g -O
2
-DINFO_IS_ON=1"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -g -O
1
-DINFO_IS_ON=1"
)
set
(
CMAKE_CXX_FLAGS_MINSIZEREL
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -Os -s"
)
...
...
src/oai_spgwu/CMakeLists.txt
View file @
83c66036
...
...
@@ -124,7 +124,6 @@ Message("Build type is ${CMAKE_BUILD_TYPE}")
if
(
CMAKE_BUILD_TYPE STREQUAL
"RelWithDebInfo"
)
add_boolean_option
(
LOG_OAI True
"Thread safe logging API"
)
add_boolean_option
(
LOG_OAI_MINIMAL True
"Thread safe logging API, log only levels above NOTICE"
)
SET
(
ASAN asan
)
endif
()
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
add_boolean_option
(
LOG_OAI True
"Thread safe logging API"
)
...
...
@@ -163,7 +162,7 @@ else (STATIC_LINKING)
set
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS
}
-g -fstack-protector-all -DMALLOC_CHECK_=3 -DINFO_IS_ON=1 -DDEBUG_IS_ON=1 -DTRACE_IS_ON=1 -O0 -fsanitize=address -fno-omit-frame-pointer"
)
endif
(
STATIC_LINKING
)
set
(
CMAKE_C_FLAGS_RELEASE
"
${
CMAKE_C_FLAGS
}
-O2 -fno-omit-frame-pointer -s -DINFO_IS_ON=1"
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS
}
-g -O
2
-DINFO_IS_ON=1 "
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS
}
-g -O
1
-DINFO_IS_ON=1 "
)
set
(
CMAKE_C_FLAGS_MINSIZEREL
"
${
CMAKE_C_FLAGS
}
-Os -s"
)
if
(
STATIC_LINKING
)
...
...
@@ -172,7 +171,7 @@ else(STATIC_LINKING)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -g -fstack-protector-all -DMALLOC_CHECK_=3 -DINFO_IS_ON=1 -DDEBUG_IS_ON=1 -DTRACE_IS_ON=1 -O0 -fsanitize=address -fno-omit-frame-pointer"
)
endif
(
STATIC_LINKING
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -O2 -fno-omit-frame-pointer -s -DINFO_IS_ON=1"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -g -O
2
-DINFO_IS_ON=1"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -g -O
1
-DINFO_IS_ON=1"
)
set
(
CMAKE_CXX_FLAGS_MINSIZEREL
"
${
CMAKE_CXX_FLAGS
}
-std=c++17 -Os -s"
)
...
...
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