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

Commit 8d4299b

Browse files
Merge pull request #333 from facebookresearch/pr/tc_dir
pass TC_DIR on cmake command line instead of through environment
2 parents dffba78 + 89ef9fb commit 8d4299b

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
@@ -411,6 +411,7 @@ function install_tc() {
411411
-DCLANG_PREFIX=${CLANG_PREFIX} \
412412
-DCUDNN_ROOT_DIR=${CUDNN_ROOT_DIR} \
413413
-DWITH_CUDA=${WITH_CUDA} \
414+
-DTC_DIR=${TC_DIR} \
414415
-DCMAKE_C_COMPILER=${CC} \
415416
-DCMAKE_CXX_COMPILER=${CXX} .. || exit 1
416417
fi

0 commit comments

Comments
 (0)