Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
38b347a9
There was an error fetching the commit references. Please try again later.
Commit
38b347a9
authored
6 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Cleaner fix for bfd.h
parent
3bb3b32f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-2
1 addition, 2 deletions
CMakeLists.txt
src/TNL/Debugging/backtrace2line.h
+7
-1
7 additions, 1 deletion
src/TNL/Debugging/backtrace2line.h
with
8 additions
and
3 deletions
CMakeLists.txt
+
1
−
2
View file @
38b347a9
...
...
@@ -79,8 +79,7 @@ endif()
# set Debug/Release options
set
(
CMAKE_CXX_FLAGS
"-std=c++11 -pthread -Wall -Wno-unused-local-typedefs -Wno-unused-variable"
)
# -DPACKAGE -DPACKAGE_VERSION are needed for bfd.h, see https://stackoverflow.com/a/11748919
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g -DPACKAGE -DPACKAGE_VERSION"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O3 -march=native -mtune=native -DNDEBUG"
)
#set( CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG -ftree-vectorizer-verbose=1 -ftree-vectorize -fopt-info-vec-missed -funroll-loops" )
# pass -rdynamic only in Debug mode
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Debugging/backtrace2line.h
+
7
−
1
View file @
38b347a9
...
...
@@ -7,13 +7,19 @@
#include
<stdio.h>
#include
<stdlib.h>
#include
<execinfo.h>
#include
<bfd.h>
#include
<dlfcn.h>
#include
<link.h>
#include
<linux/types.h>
#include
<execinfo.h>
#include
<cxxabi.h>
// THe PACKAGE and PACKAGE_VERSION macros are needed for bfd.h,
// see https://stackoverflow.com/a/11748919
#define PACKAGE
#define PACKAGE_VERSION
#include
<bfd.h>
#undef PACKAGE
#undef PACKAGE_VERSION
//from: https://oroboro.com/printing-stack-traces-file-line/
...
...
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