Skip to content

Commit 22d1e37

Browse files
committed
Have ATen build respect DEBUG variable.
1 parent e579ae7 commit 22d1e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/lib/build_libs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function build_aten() {
141141
mkdir -p build/aten
142142
cd build/aten
143143
${CMAKE_VERSION} ../../../../aten \
144-
-DCMAKE_BUILD_TYPE=Release \
144+
-DCMAKE_BUILD_TYPE=$([ $DEBUG ] && echo Debug || echo Release) \
145145
-DNO_CUDA=$((1-$WITH_CUDA)) \
146146
-DATEN_NO_CONTRIB=1 \
147147
-DCMAKE_INSTALL_PREFIX="$INSTALL_DIR"

0 commit comments

Comments
 (0)