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
a0adc86e
Commit
a0adc86e
authored
Jun 09, 2015
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #38 from iovisor/ast_dev
build without have to install llvm/clang
parents
6b268700
955f3b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
CMakeLists.txt
CMakeLists.txt
+4
-1
No files found.
CMakeLists.txt
View file @
a0adc86e
...
...
@@ -16,7 +16,7 @@ message(STATUS "Found LLVM: ${LLVM_INCLUDE_DIRS}")
# clang is linked as a library, but the library path searching is
# primitively supported, unlike libLLVM
set
(
CLANG_SEARCH
"/opt/local/llvm/lib"
)
set
(
CLANG_SEARCH
"/opt/local/llvm/lib
;
${
LLVM_LIBRARY_DIRS
}
"
)
find_library
(
libclangAnalysis NAMES clangAnalysis HINTS
${
CLANG_SEARCH
}
)
find_library
(
libclangAST NAMES clangAST HINTS
${
CLANG_SEARCH
}
)
find_library
(
libclangBasic NAMES clangBasic HINTS
${
CLANG_SEARCH
}
)
...
...
@@ -32,6 +32,9 @@ find_library(libclangSerialization NAMES clangSerialization HINTS ${CLANG_SEARCH
if
(
libclangBasic STREQUAL
"libclangBasic-NOTFOUND"
)
message
(
FATAL_ERROR
"Unable to find clang libraries"
)
endif
()
FOREACH
(
DIR
${
LLVM_INCLUDE_DIRS
}
)
include_directories
(
"
${
DIR
}
/../tools/clang/include"
)
ENDFOREACH
()
set
(
CMAKE_C_FLAGS
"-Wall"
)
set
(
CMAKE_CXX_FLAGS
"-std=c++11 -Wall"
)
...
...
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