Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tternes
Created June 11, 2015 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tternes/45e80f198c2f3c599ce1 to your computer and use it in GitHub Desktop.
Save tternes/45e80f198c2f3c599ce1 to your computer and use it in GitHub Desktop.
build with specific sdk
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