Kaydet (Commit) 09d246c8 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Use libc++ on iOS

Change-Id: I722b28f0d432c051fbe3a55823bc64b8a86e9a17
üst 7f213aaa
...@@ -2945,8 +2945,9 @@ if test $_os = iOS; then ...@@ -2945,8 +2945,9 @@ if test $_os = iOS; then
# Just add -fvisibility=hidden to CC and CXX directly so that the 3rd-party libs also # Just add -fvisibility=hidden to CC and CXX directly so that the 3rd-party libs also
# get compiled with it, to avoid ld warnings when linking all that together into one # get compiled with it, to avoid ld warnings when linking all that together into one
# executable. # executable.
# Also, use libc++.
CC="`xcrun -find clang` -arch $arch -fvisibility=hidden -isysroot $sysroot $lto $versionmin" CC="`xcrun -find clang` -arch $arch -fvisibility=hidden -isysroot $sysroot $lto $versionmin"
CXX="`xcrun -find clang++` -arch $arch -fvisibility=hidden -isysroot $sysroot $lto $versionmin" CXX="`xcrun -find clang++` -arch $arch -fvisibility=hidden -stdlib=libc++ -isysroot $sysroot $lto $versionmin"
INSTALL_NAME_TOOL=`xcrun -find install_name_tool` INSTALL_NAME_TOOL=`xcrun -find install_name_tool`
AR=`xcrun -find ar` AR=`xcrun -find ar`
NM=`xcrun -find nm` NM=`xcrun -find nm`
......
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