Skip to content

Commit 5132a4e

Browse files
driazatiYour Name
and
Your Name
authored
Ignore deprecation warnings (#691)
This adds `-Wno-deprecated-declarations` to the build scripts for each platform. pytorch/pytorch#55952 tracks fixing these for real but this will help debugging immediately since these aren't really looked at in CI runs at all. Co-authored-by: Your Name <[email protected]>
1 parent 52c2f25 commit 5132a4e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

manywheel/build_libtorch.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ fi
123123

124124
time CMAKE_ARGS=${CMAKE_ARGS[@]} \
125125
EXTRA_CAFFE2_CMAKE_FLAGS="${EXTRA_CAFFE2_CMAKE_FLAGS[@]} $STATIC_CMAKE_FLAG" \
126+
# TODO: Remove this flag once https://github.com/pytorch/pytorch/issues/55952 is closed
127+
CFLAGS='-Wno-deprecated-declarations' \
126128
python setup.py install
127129

128130
mkdir -p libtorch/{lib,bin,include,share}

wheel/build_wheel.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ else
222222
pushd "$pytorch_rootdir"
223223
mkdir -p build
224224
pushd build
225-
python ../tools/build_libtorch.py
225+
# TODO: Remove this flag once https://github.com/pytorch/pytorch/issues/55952 is closed
226+
CFLAGS='-Wno-deprecated-declarations' python ../tools/build_libtorch.py
226227
popd
227228

228229
mkdir -p libtorch/{lib,bin,include,share}

0 commit comments

Comments
 (0)