Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Podspec #866

Merged
merged 3 commits into from
Apr 4, 2018
Merged

Update Podspec #866

merged 3 commits into from
Apr 4, 2018

Conversation

Adlai-Holler
Copy link
Member

See inline comments.

The motivating factor for this diff is that the explicit specification of C++ options forced Pinterest's build system (based on Bazel) to build all Texture files using a C++ compiler. The recent file ASRecursiveUnfairLock.m cannot be built with a C++ compiler and so that broke the build. Other clients are also using this "all-C++" workaround as well.

The default C++ options (currently GNU++14) will probably be fine indefinitely. We can always reintroduce these flags if we decide to lean on, say, c++17 options but for now let's toss them overboard.

@@ -14,8 +14,6 @@ Pod::Spec.new do |spec|
spec.ios.weak_frameworks = 'AssetsLibrary'
spec.weak_frameworks = 'Photos','MapKit'

spec.requires_arc = true

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been the default since 2014.

@@ -41,7 +39,6 @@ Pod::Spec.new do |spec|
# See https://github.com/facebook/AsyncDisplayKit/issues/1153
'Source/TextKit/*.h',
]
core.xcconfig = { 'GCC_PRECOMPILE_PREFIX_HEADER' => 'YES' }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We no longer use a prefix header.

'CLANG_CXX_LANGUAGE_STANDARD' => 'c++11',
'CLANG_CXX_LIBRARY' => 'libc++'
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(See PR description). These options have been here since the initial OSS release and aren't adding value anymore. The default clang C++ options under Xcode 9 (and probably Xcode 8) are sufficient.

@TextureGroup TextureGroup deleted a comment Apr 4, 2018
@Adlai-Holler Adlai-Holler merged commit fbc2274 into master Apr 4, 2018
@Adlai-Holler Adlai-Holler deleted the AHUpdatePodspec branch April 4, 2018 20:33
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
* Update the podspec

* Put that back

* Put back the C++ standard library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants