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
f3b7c0ac
Commit
f3b7c0ac
authored
Mar 10, 2019
by
lee
Committed by
Tianqi Chen
Mar 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIN] Fix a bug in find_llvm when specify llvm-config (#2758)
parent
c09a7e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
cmake/util/FindLLVM.cmake
+3
-2
No files found.
cmake/util/FindLLVM.cmake
View file @
f3b7c0ac
...
...
@@ -37,8 +37,9 @@ macro(find_llvm use_llvm)
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
)
OUTPUT_VARIABLE __llvm_version
)
# llvm version
string
(
REGEX REPLACE
"^([^.]+)\.([^.])+\.[^.]+.*$"
"
\\
1
\\
2"
TVM_LLVM_VERSION
${
__llvm_version
}
)
# definitions
string
(
REGEX MATCHALL
"(^| )-D[A-Za-z0-9_]*"
LLVM_DEFINITIONS
${
__llvm_cxxflags
}
)
# include 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