]> git.saurik.com Git - cycript.git/blame - section.sh
Move return lexer hack to grammar semantic action.
[cycript.git] / section.sh
CommitLineData
54602694
JF
1#!/bin/bash
2function run { sdk=$1; arch=$2; shift 2; xcrun --sdk "${sdk}" g++ -arch "${arch}" "$@" -o a \
3 -isysroot "$(xcodebuild -sdk "${sdk}" -version Path)" \
4 -x c <(echo "void CYListenServer(short port); int main() { CYListenServer(6667); return 0; }") \
5 -framework Foundation -framework JavaScriptCore -framework Cycript; }
6echo macosx
7run macosx i386 -mmacosx-version-min=10.6 -F Cycript.osx "${flags[@]}"
8run macosx x86_64 -mmacosx-version-min=10.6 -F Cycript.osx "${flags[@]}"
9echo iphoneos
10run iphoneos armv6 -miphoneos-version-min=4.0 -F Cycript.ios "${flags[@]}"
11run iphoneos arm64 -miphoneos-version-min=7.0 -F Cycript.ios "${flags[@]}"
12echo iphonesimulator
13run iphonesimulator i386 -mios-simulator-version-min=4.0 -F Cycript.ios "${flags[@]}"
14run iphonesimulator x86_64 -mios-simulator-version-min=4.0 -F Cycript.ios "${flags[@]}" -fobjc-abi-version=2 -fobjc-legacy-dispatch