File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -165,6 +165,26 @@ endif()
165
165
166
166
enable_language ( CLC LLAsm )
167
167
168
+ # Configure prepare_builtins
169
+ add_subdirectory (utils )
170
+
171
+ # This needs to be set before any target that needs it
172
+ # We need to use LLVM_INCLUDE_DIRS here, because if we are linking to an
173
+ # llvm build directory, this includes $src/llvm/include which is where all the
174
+ # headers are not $build/include/ which is what LLVM_INCLUDE_DIR is set to.
175
+ include_directories ( ${LLVM_INCLUDE_DIRS} )
176
+
177
+ # Setup prepare_builtins tools
178
+ set (LLVM_LINK_COMPONENTS
179
+ BitReader
180
+ BitWriter
181
+ Core
182
+ )
183
+ add_llvm_executable ( prepare_builtins utils/prepare-builtins.cpp )
184
+ target_compile_definitions ( prepare_builtins PRIVATE ${LLVM_VERSION_DEFINE} )
185
+ # These were not properly reported in early LLVM and we don't need them
186
+ target_compile_options ( prepare_builtins PRIVATE -fno-rtti -fno-exceptions )
187
+
168
188
# Setup arch devices
169
189
set ( r600--_devices cedar cypress barts cayman )
170
190
set ( amdgcn--_devices tahiti )
You can’t perform that action at this time.
0 commit comments