1# Xcode support script. Intended to be added to and called from "Run Script" build phase.
5echo "CONFIGURATION =" "$CONFIGURATION"
6echo "ARCHITECTURES =" "$ARCHS"
8IS_DEBUG="$PROJECT_TEMP_DIR/is_debug"
9IS_RELEASE="$PROJECT_TEMP_DIR/is_release"
11if [[ "$CONFIGURATION" == "Debug" ]] ; then
12 if [ ! -f "$IS_DEBUG" ] ; then
16 rm "$IS_RELEASE" > /dev/null 2>&1 || true
17 OBJECT_TYPE=debug-object
19 if [ ! -f "$IS_RELEASE" ] ; then
23 rm "$IS_DEBUG" > /dev/null 2>&1 || true
24 OBJECT_TYPE=release-object
27## Create compiler switches for architectures
29for arch_ in $ARCHS ; do
30 ARCH_OPTS+="-arch $arch_ "
31 if ! file output/bin/purescript.o | grep -q $arch_; then
34 # TODO: make this more future-proof
35 # Note: -flto optimization causes problems with the source-level
36 # debugger. Disable bitcode temporarily if necessary.
37 if [[ $ENABLE_BITCODE == YES && $arch == arm64 ]] ; then
42make $OBJECT_TYPE ${PSC_PKG} CXXFLAGS="$ARCH_OPTS $FLTO -isysroot $SDKROOT" LD="clang -Wl,-r -nostdlib $ARCH_OPTS" -j`sysctl -n hw.ncpu`
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list