Skip to content

Commit 64efb5b

Browse files
committed
Check if target_precompile_headers exists
1 parent 56c7975 commit 64efb5b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎packages/react-native/ReactAndroid/cmake-utils/ReactNative-precompiled-header.cmake‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
# This source code is licensed under the MIT license found in the
44
# LICENSE file in the root directory of this source tree.
55

6+
if (NOT COMMAND target_precompile_headers)
7+
function(target_reuse_reactnative_pch target)
8+
endfunction()
9+
return()
10+
endif ()
11+
612
# Clang stamps a .pch with the time it was built, which makes it
713
# non-reproducible: ccache can never reuse one, and a PCH restored from the cache
814
# gets rejected as "modified since built" by the sources that consume it. Both

0 commit comments

Comments
 (0)