ios - '-mmacosx-version-min' not allowed with '-miphoneos-version-min' -


i'm trying cross-compile lib ios simulator:

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"  ../configure --prefix=/users/asmirnov/documents/dev/src/libadx_installed --enable-optimized --disable-assertions  unset cc cxx  make verbose=1 -j4 

and i'm getting error:

clang: error: invalid argument '-mmacosx-version-min=10.9' not allowed '-miphoneos-version-min=5.0' 

since i'm compiling ios i'm using -miphoneos-version-min parameter , -mmacosx-version-min=10.9 added automatically somehow.

how can fix it?

update: make verbose=1

llvm[3]: linking release loadable module llvmhello.dylib clang++  -o3 -rdynamic -wl,-rpath -wl,@executable_path/../lib -l/users/asmirnov/documents/dev/src/llvm_34_build_i386/release/lib -l/users/asmirnov/documents/dev/src/llvm_34_build_i386/release/lib -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -arch i386 -isysroot /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks/iphonesimulator7.1.sdk -miphoneos-version-min=5.0 -stdlib=libc++ -m32  -wl,-flat_namespace -wl,-undefined,suppress -dynamiclib -mmacosx-version-min=10.9 -o /users/asmirnov/documents/dev/src/llvm_34_build_i386/release/lib/llvmhello.dylib /users/asmirnov/documents/dev/src/llvm_34_build_i386/lib/transforms/hello/release/hello.o \        -wl,-exported_symbols_list,/users/asmirnov/documents/dev/src/llvm_34_build_i386/lib/transforms/hello/release/hello.exports.sed -lz -lpthread -lcurses -lm  clang: error: invalid argument '-mmacosx-version-min=10.9' not allowed '-miphoneos-version-min=5.0' 

it error in lib's makefile, fixed removing lines containing 'mmacosx-version-min'. default adds 'mmacosx-version-min' non-arm builds reason


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -