Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

Fix ccache config to work with pch (#31338)

Oleg Pipikin3b7248ef6de0
diff --git a/.github/workflows/job_build_windows.yml b/.github/workflows/job_build_windows.yml
index 93bd83b1519..14b95611d98 100644
--- a/.github/workflows/job_build_windows.yml
+++ b/.github/workflows/job_build_windows.yml
@@ -48,6 +48,7 @@ jobs:
CCACHE_REMOTE_DIR: C:\\mount\\caches\\ccache\\windows2022_x86_64_${{ inputs.build-type }}\\${{ inputs.target-branch }}
CCACHE_DIR: ${{ github.workspace }}\\ccache
CCACHE_MAXSIZE: 3G
+ CCACHE_SLOPPINESS: pch_defines,time_macros
OPENVINO_REPO: "${{ github.workspace }}\\openvino"
OPENVINO_CONTRIB_REPO: "${{ github.workspace }}\\openvino_contrib"
INSTALL_DIR: "${{ github.workspace }}\\openvino_install"
diff --git a/.github/workflows/windows_conditional_compilation.yml b/.github/workflows/windows_conditional_compilation.yml
index 835186ae5af..1c782e4e4b7 100644
--- a/.github/workflows/windows_conditional_compilation.yml
+++ b/.github/workflows/windows_conditional_compilation.yml
@@ -69,6 +69,7 @@ jobs:
CCACHE_REMOTE_DIR: "C:\\mount\\caches\\ccache\\windows2022_x86_64_itt\\${{ github.base_ref || github.ref_name }}"
CCACHE_DIR: ${{ github.workspace }}\\ccache
CCACHE_MAXSIZE: 3G
+ CCACHE_SLOPPINESS: pch_defines,time_macros
OPENVINO_REPO: "${{ github.workspace }}\\openvino"
INSTALL_DIR: "${{ github.workspace }}\\openvino_install"
INSTALL_PDB_DIR: "${{ github.workspace }}\\install_pdb"
diff --git a/cmake/developer_package/faster_build.cmake b/cmake/developer_package/faster_build.cmake
index 09b8d6133d3..54c198d1a98 100644
--- a/cmake/developer_package/faster_build.cmake
+++ b/cmake/developer_package/faster_build.cmake
@@ -4,9 +4,6 @@
include(CMakeParseArguments)
-# disable precompiled headers until it is fixed
-set(ENABLE_FASTER_BUILD OFF)
-
function(ov_build_target_faster TARGET_NAME)
# ENABLE_FASTER_BUILD option enables usage of precompiled headers
# ENABLE_UNITY_BUILD option enalbles unity build