Closed darrenclark closed 6 years ago
Had this on my to-do list to improve - very nice!
EDIT: For clarification, using xcodebuild with the -destination
parameter previously worked properly. This fix extends support to using xcodebuild with the -sdk
parameter instead.
When building via the
xcodebuild
, ie:the
amalgamation
target would fail when running theconfigure
script with an error like:It turns out it was getting tripped up because it was running the configure script as if it was trying to build for iOS, causing the
configure: error: cannot run C compiled programs.
error.It seems Xcode &
xcodebuild
differ in behaviour here:xcodebuild
runs the run script build phase as if it was compiling for whatever platform is specified via the-sdk
option. This causes all sorts of issues for non-macOS because theMakefile
builds & runs some command line utilities as part of the build process:This PR/commit ensures the configure script & make are always run as if we are building for macOS. (The
sqlitecustom
target will still build for the selected platform).Here's the new run script build phase (as the diff is pretty unreadable):