Yesterday I've dragged my feet to upgrading my machine to Mojave after master
started to require Xcode 10.2-beta. OS and Xcode updates went without any issue. I've switched the default compiler to the latest:
xcode-select -s /Applications/Xcode-beta.app
… but then my usual
swift-source$ ./swift/utils/build-script -R --no-assertions
failed with
fatal error: 'libxml/parser.h' file not found
An old post in the forums (libxml/parser.h not found?) suggested I needed to add --reconfigure
to my usual invocation and it did help with unsticking the build…
My issue now is that the build has now ran out of disk space. It looks like the llvm
build in release mode is now 17.4 GB. Previously it did only take about 1.5 GB… So I'm guessing some of the defaults have changed since last time I generated full configuration. I've been staring at build-script --help
in despair — there's nothing about LLVM architectures...
How do I make it build only minimal x86-64 libs and tools required to working on swift locally on Mac?
Update: after getting through the LLVM, I still got stuck on the same error:
swift-source/swift/tools/swift-ide-test/XMLValidator.cpp:22:10: fatal error: 'libxml/parser.h' file not found
#include <libxml/parser.h>
^~~~~~~~~~~~~~~~~
1 error generated.