Created
June 11, 2015 03:35
-
-
Save tternes/45e80f198c2f3c599ce1 to your computer and use it in GitHub Desktop.
build with specific sdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clang hi.c -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -o hi | |
where -isysroot parameter is discovered with: | |
xcrun --sdk macosx10.9 --show-sdk-path | |
--sdk parameter possibilities: | |
thaddeus@pegasus:~$ xcodebuild -showsdks | |
OS X SDKs: | |
OS X 10.9 -sdk macosx10.9 | |
OS X 10.10 -sdk macosx10.10 | |
iOS SDKs: | |
iOS 8.3 -sdk iphoneos8.3 | |
iOS Simulator SDKs: | |
Simulator - iOS 8.3 -sdk iphonesimulator8.3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment