Skip to content

Commit

Permalink
Add ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
radex committed Mar 25, 2021
1 parent 7c73835 commit ee491a1
Show file tree
Hide file tree
Showing 6 changed files with 3,884 additions and 3,543 deletions.
18 changes: 18 additions & 0 deletions native/iosTest/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,21 @@ target 'WatermelonTester' do
pod 'Nimble', '~> 8.1.2'
end
end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# ccache bails out of caching if clang modules are enabled, but this breaks some packages
# you also have to be careful about PCHs
# sometimes you might have to manually add a system framework to project Link phase
# more info: https://pspdfkit.com/blog/2015/ccache-for-fun-and-profit/
config.build_settings['CC'] ||= ['$(SRCROOT)/../../../scripts/ccache-clang']
case target.name
when 'Nimble'
config.build_settings['CLANG_ENABLE_MODULES'] ||= ['YES']
else
config.build_settings['CLANG_ENABLE_MODULES'] ||= ['NO']
end
end
end
end
2 changes: 1 addition & 1 deletion native/iosTest/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,6 @@ SPEC CHECKSUMS:
WatermelonDB: 5acc241643703e108ca73e0325216ad82fdc3965
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6

PODFILE CHECKSUM: 60537ef06b1f3805dc6a6cfd000778feddff8ac8
PODFILE CHECKSUM: 588edbc988f1663d88401d3a37225ea69dbcc310

COCOAPODS: 1.10.0
2 changes: 1 addition & 1 deletion native/iosTest/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ee491a1

Please sign in to comment.