Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
943dfa26
Commit
943dfa26
authored
Jun 15, 2018
by
MORITA Kazutaka
Committed by
Tianqi Chen
Jun 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Link system library needed for LLVM (#1282)
parent
2f188c92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
cmake/util/FindLLVM.cmake
+6
-2
No files found.
cmake/util/FindLLVM.cmake
View file @
943dfa26
...
...
@@ -26,14 +26,18 @@ macro(find_llvm use_llvm)
execute_process
(
COMMAND
${
LLVM_CONFIG
}
--includedir
OUTPUT_VARIABLE LLVM_INCLUDE_DIRS
)
execute_process
(
COMMAND
${
LLVM_CONFIG
}
--libfiles
OUTPUT_VARIABLE LLVM_LIBS
)
OUTPUT_VARIABLE __llvm_libfiles
)
execute_process
(
COMMAND
${
LLVM_CONFIG
}
--system-libs
OUTPUT_VARIABLE __llvm_system_libs
)
execute_process
(
COMMAND
${
LLVM_CONFIG
}
--cxxflags
OUTPUT_VARIABLE __llvm_cxxflags
)
execute_process
(
COMMAND
${
LLVM_CONFIG
}
--version
COMMAND cut -b 1,3
OUTPUT_VARIABLE TVM_LLVM_VERSION
)
string
(
REGEX MATCHALL
"(^| )-D[A-Za-z0-9_]*"
LLVM_DEFINITIONS
${
__llvm_cxxflags
}
)
string
(
STRIP
${
LLVM_LIBS
}
LLVM_LIBS
)
string
(
STRIP
${
__llvm_libfiles
}
__llvm_libfiles
)
string
(
STRIP
${
__llvm_system_libs
}
__llvm_system_libs
)
set
(
LLVM_LIBS
"
${
__llvm_libfiles
}
${
__llvm_system_libs
}
"
)
separate_arguments
(
LLVM_LIBS
)
string
(
STRIP
${
LLVM_INCLUDE_DIRS
}
LLVM_INCLUDE_DIRS
)
string
(
STRIP
${
TVM_LLVM_VERSION
}
TVM_LLVM_VERSION
)
...
...
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