aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2015-08-29 18:52:04 +0200
committerRenĂ© Korthaus <[email protected]>2015-08-29 18:52:04 +0200
commitf3be7b17eec508f8a33fd0ef18a1bb6d688fa6e4 (patch)
tree379dff4707b85080133659a2fea4cb3acf5d8eee /doc
parentb403ea921b9ebb35bea8bc19eeae4fa75b71bd22 (diff)
Build with libc++ C++ standard library on clang for iOS
When building for iOS with clang, the C++ standard library must be set to libc++ instead of libstdc++.
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/building.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/building.rst b/doc/manual/building.rst
index 2333a9069..0238f5f2f 100644
--- a/doc/manual/building.rst
+++ b/doc/manual/building.rst
@@ -185,7 +185,7 @@ For iOS using XCode
To cross compile for iOS, configure with::
- $ ./configure.py --cpu=armv7 --cc=clang --cc-abi-flags="-arch armv7 -arch armv7s --sysroot=$(IOS_SYSROOT)"
+ $ ./configure.py --cpu=armv7 --cc=clang --cc-abi-flags="-arch armv7 -arch armv7s -stdlib=libc++ --sysroot=$(IOS_SYSROOT)"
Along with any additional configuration arguments. Using ``--no-autoload``
might be helpful as can substantially reduce code size.