diff --git a/build_tools/build_libtorch.sh b/build_tools/build_libtorch.sh index 73cf1b44264d..bc3ec12bb4b1 100755 --- a/build_tools/build_libtorch.sh +++ b/build_tools/build_libtorch.sh @@ -99,6 +99,7 @@ build_pytorch() { USE_PYTORCH_QNNPACK=ON \ USE_QNNPACK=OFF \ USE_XNNPACK=OFF \ + USE_PRECOMPILED_HEADERS=1 \ ${PYTHON_BIN} setup.py bdist_wheel -d "$WHEELHOUSE" }