mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 12:45:37 +08:00
Fix some issues with the React podspec for the Cxx bridge
Summary: Trying to fix the RN Travis CI tests Splitting off from https://github.com/facebook/react-native/pull/14100 Closes https://github.com/facebook/react-native/pull/14132 Reviewed By: ericvicenti Differential Revision: D5112077 Pulled By: javache fbshipit-source-id: cf030b927b0f28f2b494471498f1ddb2c0a5c1df
This commit is contained in:
committed by
Facebook Github Bot
parent
59e41b4485
commit
33e22486e9
@@ -4,6 +4,7 @@ set -e
|
||||
# Only set when not running in an Xcode context
|
||||
if [ -z "$ACTION" ] || [ -z "$BUILD_DIR" ]; then
|
||||
export CC="$(xcrun -find -sdk iphoneos cc) -arch armv7 -isysroot $(xcrun -sdk iphoneos --show-sdk-path)"
|
||||
export CXX="$CC"
|
||||
fi
|
||||
|
||||
./configure --host arm-apple-darwin
|
||||
@@ -23,4 +24,13 @@ cat << EOF >> src/config.h
|
||||
#undef HAVE_SYS_SYSCALL_H
|
||||
#undef OS_MACOSX
|
||||
#endif
|
||||
|
||||
/* Special configuration for ucontext */
|
||||
#undef HAVE_UCONTEXT_H
|
||||
#undef PC_FROM_UCONTEXT
|
||||
#if defined(__x86_64__)
|
||||
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
|
||||
#elif defined(__i386__)
|
||||
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
|
||||
#endif
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user