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
e35e1cc2
Commit
e35e1cc2
authored
Sep 14, 2019
by
Junru Shao
Committed by
Tianqi Chen
Sep 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial (#3954)
parent
4b431c67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
cmake/util/FindLLVM.cmake
+2
-1
No files found.
cmake/util/FindLLVM.cmake
View file @
e35e1cc2
...
...
@@ -47,6 +47,7 @@ macro(find_llvm use_llvm)
elseif
(
NOT LLVM_CONFIG STREQUAL
"OFF"
)
# use llvm config
message
(
STATUS
"Use llvm-config="
${
LLVM_CONFIG
}
)
separate_arguments
(
LLVM_CONFIG
)
execute_process
(
COMMAND
${
LLVM_CONFIG
}
--libfiles
OUTPUT_VARIABLE __llvm_libfiles
)
execute_process
(
COMMAND
${
LLVM_CONFIG
}
--system-libs
...
...
@@ -60,7 +61,7 @@ macro(find_llvm use_llvm)
# definitions
string
(
REGEX MATCHALL
"(^| )-D[A-Za-z0-9_]*"
LLVM_DEFINITIONS
${
__llvm_cxxflags
}
)
# include dir
string
(
REGEX MATCHALL
"(^| )-I[^ ]*"
__llvm_include_flags
${
__llvm_cxxflags
}
)
string
(
REGEX MATCHALL
"(^| )-I[^ ]*"
__llvm_include_flags
${
__llvm_cxxflags
}
)
set
(
LLVM_INCLUDE_DIRS
""
)
foreach
(
__flag IN ITEMS
${
__llvm_include_flags
}
)
string
(
REGEX REPLACE
"(^| )-I"
""
__dir
"
${
__flag
}
"
)
...
...
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