Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
e9e53c5d
Unverified
Commit
e9e53c5d
authored
Nov 18, 2019
by
Scott Cyphers
Committed by
GitHub
Nov 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into ayzhuang/cf_gather
parents
7f779a1f
ef922f0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
CMakeLists.txt
src/contrib/mlir/CMakeLists.txt
+4
-3
No files found.
src/contrib/mlir/CMakeLists.txt
View file @
e9e53c5d
...
...
@@ -61,9 +61,9 @@ target_link_libraries(
# some libs need whole archive linkage because of Globals static initialization
function
(
whole_archive_link target
)
if
(
"
${
CMAKE_SYSTEM_NAME
}
"
STREQUAL
"Darwin"
)
set
(
link_flags
"-L
lib -Wl,-all
_load "
)
set
(
link_flags
"-L
${
LLVM_BUILD_LIBRARY_DIR
}
-Wl,-force
_load "
)
FOREACH
(
LIB
${
ARGN
}
)
string
(
CONCAT link_flags
${
link_flags
}
"
${
LIB
}
"
)
string
(
CONCAT link_flags
${
link_flags
}
"
${
LIB
}
"
)
ENDFOREACH
(
LIB
)
else
()
set
(
link_flags
"-Llib -Wl,--whole-archive,"
)
...
...
@@ -77,10 +77,11 @@ function(whole_archive_link target)
set_target_properties
(
${
target
}
PROPERTIES LINK_FLAGS
${
link_flags
}
)
endfunction
(
whole_archive_link
)
whole_archive_link
(
mlir_backend
set
(
LIBS
${
LLVM_BUILD_LIBRARY_DIR
}
/libMLIRAffineOps.a
${
LLVM_BUILD_LIBRARY_DIR
}
/libMLIRStandardOps.a
)
whole_archive_link
(
mlir_backend
${
LIBS
}
)
# Link LLVM libs
target_link_libraries
(
mlir_backend PRIVATE
...
...
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