Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 89ef9fb

Browse files
author
Sven Verdoolaege
committed
pass TC_DIR on cmake command line instead of through environment
The environment is not preserved by cmake, resulting in a TC_DIR set to "" whenever cmake gets called during make.
1 parent 6f51af4 commit 89ef9fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ message(STATUS "CMAKE_INSTALL_PREFIX is ${CMAKE_INSTALL_PREFIX}")
3434

3535
add_subdirectory(third-party/pybind11)
3636

37-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTC_DIR=\"\\\"$ENV{TC_DIR}\\\"\" ")
37+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTC_DIR=\"\\\"${TC_DIR}\\\"\" ")
3838

3939
set(LLVM_DIR ${CLANG_PREFIX}/lib/cmake/llvm)
4040
message(STATUS "Looking for LLVM in ${LLVM_DIR}")

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ function install_tc() {
412412
-DCLANG_PREFIX=${CLANG_PREFIX} \
413413
-DCUDNN_ROOT_DIR=${CUDNN_ROOT_DIR} \
414414
-DWITH_CUDA=${WITH_CUDA} \
415+
-DTC_DIR=${TC_DIR} \
415416
-DCMAKE_C_COMPILER=${CC} \
416417
-DCMAKE_CXX_COMPILER=${CXX} .. || exit 1
417418
fi

0 commit comments

Comments
 (0)