File tree 2 files changed +6
-3
lines changed
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}
38
38
39
39
cmake -B build-native -S enzyme -GNinja "${NATIVE_CMAKE_FLAGS[@]}"
40
40
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
43
43
44
44
# 2. Cross-compile
45
45
CMAKE_FLAGS=()
46
46
CMAKE_FLAGS+=(-DENZYME_EXTERNAL_SHARED_LIB=ON)
47
47
CMAKE_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)
48
49
CMAKE_FLAGS+=(-DENZYME_CLANG=OFF)
49
50
# RelWithDebInfo for decent performance, with debugability
50
51
CMAKE_FLAGS+=(-DCMAKE_BUILD_TYPE=RelWithDebInfo)
Original file line number Diff line number Diff line change 2
2
# set(LLVM_LINK_COMPONENTS Core Support)
3
3
#endif()
4
4
5
- set (Enzyme_TABLEGEN_EXE enzyme-tblgen)
5
+ if ("${Enzyme_TABLEGEN_EXE} " STREQUAL "" )
6
+ set (Enzyme_TABLEGEN_EXE enzyme-tblgen)
7
+ endif ()
6
8
7
9
get_target_property (TBL_LINKED_LIBS LLVMSupport INTERFACE_LINK_LIBRARIES)
8
10
list (REMOVE_ITEM TBL_LINKED_LIBS "ZLIB::ZLIB" )
You can’t perform that action at this time.
0 commit comments