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

Commit 09ce450

Browse files
authored
Merge pull request #371 from facebookresearch/build_flags
Add compiler flags to ATen
2 parents c5e41cc + c2963fd commit 09ce450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ function install_aten() {
240240
if should_reconfigure .. .build_cache; then
241241
echo "Reconfiguring ATen"
242242
export PYTORCH_PYTHON=${PYTHON}
243-
${CMAKE_VERSION} .. -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DHAS_C11_ATOMICS=OFF -DNO_CUDA=${ATEN_NO_CUDA}
243+
${CMAKE_VERSION} .. -DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} -DHAS_C11_ATOMICS=OFF -DNO_CUDA=${ATEN_NO_CUDA} -DCMAKE_CXX_COMPILER=${CXX} -DCMAKE_C_COMPILER=${CC}
244244
fi
245245
make -j $CORES -s || exit 1
246246

0 commit comments

Comments
 (0)