Fix the compiling error for xcode 10#5238
Fix the compiling error for xcode 10#5238JerryShih wants to merge 1 commit intoprotocolbuffers:masterfrom
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it! |
|
CLAs look good, thanks! |
|
@anandolee |
|
@TeBoring |
|
Do you known since which version of xcode does libc++ exist? We probably can add it by default. |
|
@TeBoring |
|
We provide support for up to osx 10.6 for now. It seems xcode 4 can still be run on osx 10.6. |
|
https://gitlab.kitware.com/cmake/cmake/issues/18396
I feel since xcode10 still claims to support osx10.6, it should not deprecate libstdc++... |
|
In https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes, it suggests:
Perhaps the proper change is to set MACOSX_DEPLOYMENT_TARGET: https://github.com/grpc/grpc/blame/0a1d0d25a2392a0fa70d8ad54c572bdc726b62d3/tools/distrib/python/grpcio_tools/setup.py#L123 |
|
@TeBoring
I can't catch the idea that we could change MACOSX_DEPLOYMENT_TARGET. You said that the protobuf could run at 10.6. How could we change MACOSX_DEPLOYMENT_TARGET to 10.9? |
|
We have to support the newest xcode. For that, we can drop the older
version of Mac OS.
…On Wed, Oct 24, 2018 at 18:13 Jerry ***@***.***> wrote:
@TeBoring <https://github.com/TeBoring>
It looks like the xcode 4.3 has libc++.
https://stackoverflow.com/questions/9345271/xcode-4-3-and-c11-include-paths/13621792
In
https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes,
it suggests:
C++ projects must now migrate to libc++ and are recommended to set a
deployment target of macOS 10.9 or later, or iOS 7 or later
Perhaps the proper change is to set MACOSX_DEPLOYMENT_TARGET:
https://github.com/grpc/grpc/blame/0a1d0d25a2392a0fa70d8ad54c572bdc726b62d3/tools/distrib/python/grpcio_tools/setup.py#L123
I can't catch the idea that we could change MACOSX_DEPLOYMENT_TARGET. You
said that the protobuf could run at 10.6. How could we change
MACOSX_DEPLOYMENT_TARGET to 10.9?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5238 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE9H5aVlay_D4otSY7frn6T5Xugc1BAdks5uoRAcgaJpZM4XNurE>
.
|
|
@TeBoring |
|
Yes
…On Wed, Oct 24, 2018 at 21:52 Jerry ***@***.***> wrote:
@TeBoring <https://github.com/TeBoring>
So, what should I do for the next step?
We could replace the libstdc++ with libc++. The xcode 4.3 has libc++.
Do you mean I could add "os.environ['MACOSX_DEPLOYMENT_TARGET'] = '10.9'"
to setup.py?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5238 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE9H5ePXyLVC6D9YJShuCZoaSB9DKqCCks5uoUOfgaJpZM4XNurE>
.
|
The xcode 10 removes the deprecated libstdc++ library. We could set "MACOSX_DEPLOYMENT_TARGET" to "10.9" to use libc++ instead.
|
@TeBoring |
|
Could you do me a favor to send another PR with the same change to |
|
Fixed in #5406 |
The xcode 10 removes the deprecated libstdc++ library. Now, we should
use libc++ instead.
Here is the error message when I try to build the protobuf with cpp implementation.