Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TEC Server Config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MSK-SW
Infrastructure and Support
TEC
TEC Server Config
Commits
1cc844a6
Commit
1cc844a6
authored
4 years ago
by
Martin Killenberg
Browse files
Options
Downloads
Patches
Plain Diff
renamed flag USE_TSAN to ENABLE_TSAN
parent
2fb63a95
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/enable_code_coverage_report.cmake
+3
-3
3 additions, 3 deletions
cmake/enable_code_coverage_report.cmake
cmake/set_default_flags.cmake
+2
-2
2 additions, 2 deletions
cmake/set_default_flags.cmake
with
5 additions
and
5 deletions
cmake/enable_code_coverage_report.cmake
+
3
−
3
View file @
1cc844a6
...
...
@@ -25,9 +25,9 @@
#
#######################################################################################################################
string
(
TOUPPER
"
${
US
E_TSAN
}
"
us
e_tsanitizer_uppercase
)
IF
(
us
e_tsanitizer_uppercase STREQUAL
"TRUE"
)
message
(
WARNING
"The
US
E_TSAN set to true. Code coverage cannot be enabled, becasue it requires -O0 flag and
US
E_TSAN requires -O1."
)
string
(
TOUPPER
"
${
ENABL
E_TSAN
}
"
enabl
e_tsanitizer_uppercase
)
IF
(
enabl
e_tsanitizer_uppercase STREQUAL
"TRUE"
)
message
(
WARNING
"The
ENABL
E_TSAN set to true. Code coverage cannot be enabled, becasue it requires -O0 flag and
ENABL
E_TSAN requires -O1."
)
ELSE
()
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-O0 --coverage"
)
# The make coverage command is only available in debug mode. Also
...
...
This diff is collapsed.
Click to expand it.
cmake/set_default_flags.cmake
+
2
−
2
View file @
1cc844a6
...
...
@@ -29,8 +29,8 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${${PROJECT_NAME}_C_FLAGS} -Wall -Wextra -Ws
set
(
CMAKE_C_FLAGS_RELEASE
"
${
CMAKE_C_FLAGS_RELEASE
}
-O3"
)
set
(
CMAKE_C_FLAGS_RELWITHDEBINFO
"
${
CMAKE_C_FLAGS_RELWITHDEBINFO
}
-O3 -g"
)
string
(
TOUPPER
"
${
US
E_TSAN
}
"
us
e_tsanitizer_uppercase
)
IF
(
us
e_tsanitizer_uppercase STREQUAL
"TRUE"
)
string
(
TOUPPER
"
${
ENABL
E_TSAN
}
"
enabl
e_tsanitizer_uppercase
)
IF
(
enabl
e_tsanitizer_uppercase STREQUAL
"TRUE"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-g -O1 -fsanitize=thread"
)
set
(
CMAKE_C_FLAGS_DEBUG
"
${
CMAKE_C_FLAGS_DEBUG
}
-g -O1 -fsanitize=thread"
)
ELSE
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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