Commit 9514f5e8 authored by Chongyu Zhu's avatar Chongyu Zhu

[Sandbox::FileAccessor] Add missing `.cc` extension for C++ to `SOURCE_FILE_EXTENSIONS`.

parent f71d6ee3
......@@ -12,6 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Marius Rackwitz](https://github.com/mrackwitz)
[#3440](https://github.com/CocoaPods/CocoaPods/issues/3440)
* C++ source files with `.cc` extension now have their compiler flags set correctly.
[Chongyu Zhu](https://github.com/lembacon)
## 0.37.0
......
......@@ -8,7 +8,7 @@ module Pod
#
class FileAccessor
HEADER_EXTENSIONS = Xcodeproj::Constants::HEADER_FILES_EXTENSIONS
SOURCE_FILE_EXTENSIONS = (%w(.m .mm .c .cpp .swift) + HEADER_EXTENSIONS).uniq.freeze
SOURCE_FILE_EXTENSIONS = (%w(.m .mm .c .cc .cpp .swift) + HEADER_EXTENSIONS).uniq.freeze
GLOB_PATTERNS = {
:readme => 'readme{*,.*}'.freeze,
......
......@@ -211,7 +211,7 @@ module Pod
file_patterns = ['Classes/*.{h,m,d}', 'Vendor']
options = {
:exclude_patterns => ['Classes/**/osx/**/*', 'Resources/**/osx/**/*'],
:dir_pattern => '*{.m,.mm,.c,.cpp,.swift,.h,.hh,.hpp,.ipp,.tpp}',
:dir_pattern => '*{.m,.mm,.c,.cc,.cpp,.swift,.h,.hh,.hpp,.ipp,.tpp}',
:include_dirs => false,
}
@spec.exclude_files = options[:exclude_patterns]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment