Skip to content

Commit 2b203c7

Browse files
committed
Revert "Fix the build"
This reverts commit 5b52f3f.
1 parent 5b52f3f commit 2b203c7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,26 @@ endif()
165165

166166
enable_language( CLC LLAsm )
167167

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+
168188
# Setup arch devices
169189
set( r600--_devices cedar cypress barts cayman )
170190
set( amdgcn--_devices tahiti )

0 commit comments

Comments
 (0)