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
0f0219c8
Commit
0f0219c8
authored
Nov 02, 2017
by
Jaikrishnan Menon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Rename PCH and debuginfo flags to use a similar convention as
the other backend flag
parent
a60f99ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
CMakeLists.txt
src/ngraph/CMakeLists.txt
+5
-3
No files found.
src/ngraph/CMakeLists.txt
View file @
0f0219c8
...
@@ -113,13 +113,15 @@ if(LLVM_INCLUDE_DIR)
...
@@ -113,13 +113,15 @@ if(LLVM_INCLUDE_DIR)
runtime/cpu/external_function.cpp
runtime/cpu/external_function.cpp
)
)
# LLVM binary builds are typically built without RTTI
# LLVM binary builds are typically built without RTTI
# The built-in headers are in a version-specific directory
# This must be kept in sync with the LLVM + Clang version in use
set_source_files_properties
(
codegen/compiler.cpp PROPERTIES COMPILE_FLAGS
"-fno-rtti"
)
set_source_files_properties
(
codegen/compiler.cpp PROPERTIES COMPILE_FLAGS
"-fno-rtti"
)
set_source_files_properties
(
codegen/compiler.cpp PROPERTIES COMPILE_DEFINITIONS
set_source_files_properties
(
codegen/compiler.cpp PROPERTIES COMPILE_DEFINITIONS
"EIGEN_HEADERS_PATH=
\"
${
EIGEN_INCLUDE_DIR
}
\"
;CLANG_BUILTIN_HEADERS_PATH=
\"
${
LLVM_LIB_DIR
}
/clang/5.0.0/include
\"
;NGRAPH_HEADERS_PATH=
\"
${
NGRAPH_INCLUDE_PATH
}
\"
"
)
"EIGEN_HEADERS_PATH=
\"
${
EIGEN_INCLUDE_DIR
}
\"
;CLANG_BUILTIN_HEADERS_PATH=
\"
${
LLVM_LIB_DIR
}
/clang/5.0.0/include
\"
;NGRAPH_HEADERS_PATH=
\"
${
NGRAPH_INCLUDE_PATH
}
\"
"
)
set
(
CPU_ENABLE_PCH
0 CACHE STRING
"Enable pre-compiled headers in the CPU backend"
)
set
(
NGRAPH_CPU_PCH_ENABLE
0 CACHE STRING
"Enable pre-compiled headers in the CPU backend"
)
set
(
CPU_ENABLE_DEBUGINFO
0 CACHE STRING
"Enable debuginfo in the CPU backend"
)
set
(
NGRAPH_CPU_DEBUGINFO_ENABLE
0 CACHE STRING
"Enable debuginfo in the CPU backend"
)
set_source_files_properties
(
runtime/cpu/external_function.cpp PROPERTIES COMPILE_DEFINITIONS
set_source_files_properties
(
runtime/cpu/external_function.cpp PROPERTIES COMPILE_DEFINITIONS
"NGCPU_PCH=
${
CPU_ENABLE_PCH
}
;NGCPU_DEBUGINFO=
${
CPU_ENABLE_DEBUGINFO
}
"
)
"NGCPU_PCH=
${
NGRAPH_CPU_PCH_ENABLE
}
;NGCPU_DEBUGINFO=
${
NGRAPH_CPU_DEBUGINFO_ENABLE
}
"
)
endif
()
endif
()
add_library
(
ngraph SHARED
${
SRC
}
)
add_library
(
ngraph SHARED
${
SRC
}
)
...
...
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