如何为ios模拟器交叉编译llvm / clang?

时间:2014-06-03 09:31:38

标签: ios clang cross-compiling

export CC="clang -arch i386 -mios-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk"

export CXX="clang++ -arch i386 -mios-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk"

../llvm_34_ios/configure --prefix=/Users/admin/llvm_34_ios_i386_installed --host=i386-apple-darwin11 --enable-optimized --disable-assertions

unset CC CXX

make

我收到错误:

llvm[1]: Building Intrinsics.gen.tmp from Intrinsics.td
error:ERROR: Couldn't find the `Intrinsic' class!

make[1]: *** [/Users/admin/Documents/dev/src/llvm_34_build_i386/lib/IR/Release/Intrinsics.gen.tmp] Error 1

0 个答案:

没有答案