Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
4a7717d3
Commit
4a7717d3
authored
Dec 12, 2018
by
torgil
Committed by
yonghong-song
Dec 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add option to build with rtti (#2074)
Enables linking bcc-static in binaries compiled with rtti
parent
382f5731
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
CMakeLists.txt
CMakeLists.txt
+1
-0
src/CMakeLists.txt
src/CMakeLists.txt
+5
-0
No files found.
CMakeLists.txt
View file @
4a7717d3
...
...
@@ -16,6 +16,7 @@ include(GNUInstallDirs)
include
(
CheckCXXCompilerFlag
)
include
(
cmake/FindCompilerFlag.cmake
)
option
(
ENABLE_RTTI
"Enable compiling with real time type information"
OFF
)
option
(
ENABLE_LLVM_SHARED
"Enable linking LLVM as a shared library"
OFF
)
option
(
ENABLE_CLANG_JIT
"Enable Loading BPF through Clang Frontend"
ON
)
option
(
ENABLE_USDT
"Enable User-level Statically Defined Tracing"
ON
)
...
...
src/CMakeLists.txt
View file @
4a7717d3
...
...
@@ -2,7 +2,12 @@
# Licensed under the Apache License, Version 2.0 (the "License")
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
"
)
if
(
ENABLE_RTTI
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-frtti"
)
else
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fno-rtti"
)
endif
()
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
...
...
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