File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,14 @@ NATIVE_CMAKE_FLAGS+=(-DBC_LOAD_FLAGS="-target ${target} --sysroot=/opt/${target}
3838
3939cmake -B build-native -S enzyme -GNinja "${NATIVE_CMAKE_FLAGS[@]}"
4040
41- # Only build blasheaders ( and eventually tblgen)
42- ninja -C build-native -j ${nproc} blasheaders
41+ # Only build blasheaders and tblgen
42+ ninja -C build-native -j ${nproc} blasheaders enzyme-tblgen
4343
4444# 2. Cross-compile
4545CMAKE_FLAGS=()
4646CMAKE_FLAGS+=(-DENZYME_EXTERNAL_SHARED_LIB=ON)
4747CMAKE_FLAGS+=(-DBC_LOAD_HEADER=`pwd`/build-native/BCLoad/gsl/blas_headers.h)
48+ CMAKE_FLAGS+=(-DEnzyme_TABLEGEN_EXE=`pwd`/build-native/tools/enzyme-tblgen/enzyme-tblgen)
4849CMAKE_FLAGS+=(-DENZYME_CLANG=OFF)
4950# RelWithDebInfo for decent performance, with debugability
5051CMAKE_FLAGS+=(-DCMAKE_BUILD_TYPE=RelWithDebInfo)
Original file line number Diff line number Diff line change 22# set(LLVM_LINK_COMPONENTS Core Support)
33#endif()
44
5- set (Enzyme_TABLEGEN_EXE enzyme-tblgen)
5+ if ("${Enzyme_TABLEGEN_EXE} " STREQUAL "" )
6+ set (Enzyme_TABLEGEN_EXE enzyme-tblgen)
7+ endif ()
68
79get_target_property (TBL_LINKED_LIBS LLVMSupport INTERFACE_LINK_LIBRARIES)
810list (REMOVE_ITEM TBL_LINKED_LIBS "ZLIB::ZLIB" )
You can’t perform that action at this time.
0 commit comments