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
f15cbe89
Commit
f15cbe89
authored
Mar 21, 2016
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #441 from ismail/llvm-3.8
Fix llvm shared build
parents
f6bf78f5
0025fe59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/cc/CMakeLists.txt
src/cc/CMakeLists.txt
+6
-4
No files found.
src/cc/CMakeLists.txt
View file @
f15cbe89
...
@@ -42,16 +42,18 @@ set_target_properties(bcc-static PROPERTIES OUTPUT_NAME bcc)
...
@@ -42,16 +42,18 @@ set_target_properties(bcc-static PROPERTIES OUTPUT_NAME bcc)
# BPF is still experimental otherwise it should be available
# BPF is still experimental otherwise it should be available
#llvm_map_components_to_libnames(llvm_libs bpf mcjit irreader passes)
#llvm_map_components_to_libnames(llvm_libs bpf mcjit irreader passes)
llvm_map_components_to_libnames
(
llvm_libs mcjit irreader passes linker
llvm_map_components_to_libnames
(
llvm_libs bitwriter bpfcodegen irreader linker
instrumentation objcarcopts bitwriter option x86codegen
)
mcjit objcarcopts option passes x86codegen
)
llvm_expand_dependencies
(
expanded_libs
${
llvm_libs
}
)
# order is important
# order is important
set
(
clang_libs
${
libclangFrontend
}
${
libclangSerialization
}
${
libclangDriver
}
${
libclangParse
}
set
(
clang_libs
${
libclangFrontend
}
${
libclangSerialization
}
${
libclangDriver
}
${
libclangParse
}
${
libclangSema
}
${
libclangCodeGen
}
${
libclangAnalysis
}
${
libclangRewrite
}
${
libclangEdit
}
${
libclangSema
}
${
libclangCodeGen
}
${
libclangAnalysis
}
${
libclangRewrite
}
${
libclangEdit
}
${
libclangAST
}
${
libclangLex
}
${
libclangBasic
}
)
${
libclangAST
}
${
libclangLex
}
${
libclangBasic
}
)
# Link against LLVM libraries
# Link against LLVM libraries
target_link_libraries
(
bcc-shared b_frontend clang_frontend
${
clang_libs
}
${
llvm_libs
}
LLVMBPFCodeGen
)
target_link_libraries
(
bcc-shared b_frontend clang_frontend
${
clang_libs
}
${
expanded_libs
}
)
target_link_libraries
(
bcc-static b_frontend clang_frontend bcc-loader-static
${
clang_libs
}
${
llvm_libs
}
LLVMBPFCodeGen
)
target_link_libraries
(
bcc-static b_frontend clang_frontend bcc-loader-static
${
clang_libs
}
${
expanded_libs
}
)
install
(
TARGETS bcc-shared LIBRARY COMPONENT libbcc
install
(
TARGETS bcc-shared LIBRARY COMPONENT libbcc
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
)
...
...
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