x/mobile: stdlibc++ deprecation building issue: flags set but still shows error: clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of iOS 7 [-Wdeprecated] #29969
Labels
FrozenDueToAge
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Other version info:
Version 10.1 (10B61)
10.14.2 (18C54)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Background: I was trying to build a Go library (with C++ source) into objective-c bindings (as .framework).
What did you expect to see?
The library can be built as an iOS framework.
What did you see instead?
The build failed due to
libstdc++
is used even if I setexport CGO_CPPFLAGS="-stdlib=libc++"
.Without
export CGO_CPPFLAGS="-stdlib=libc++"
, it shows:The text was updated successfully, but these errors were encountered: