From 990674cb3951893daf27388e25206778a9842876 Mon Sep 17 00:00:00 2001 From: powderluv Date: Wed, 31 Aug 2022 16:09:16 -0700 Subject: [PATCH] Use pre-compiled headers for PyTorch Source builds (#1327) This should speed up source builds and ccache. May cause issues on macOS (https://github.com/pytorch/pytorch/issues/80018) --- build_tools/build_libtorch.sh | 1 + 1 file changed, 1 insertion(+) 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" }