Commit 23226ba
committed
Fix ccache being silently bypassed on iOS builds
Xcode does not export user-defined build settings as environment
variables for invoked scripts, so the CCACHE_BINARY value set on
the project by react_native_post_install never reached
ccache-clang.sh / ccache-clang++.sh. Because the original
exec command collapsed an empty $CCACHE_BINARY, builds silently
invoked clang directly and ccache was never used.
Fall back to a PATH lookup when CCACHE_BINARY is unset, and only
prepend ccache when an executable is actually available so projects
without ccache still build.
Fixes #553811 parent 11d894d commit 23226ba
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments