You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script changes for building static SDK with swift-foundation (#403)
* Fix Job Count Flag
Hooking up the job count flag to set the number of parallel jobs and if
there is an unknown flag, emit an error message saying that the flag is
instead of just printing out the usage info.
* Skip cmake bootstrap
The cmake bootstrap is slower than using the installed CMake to build
the new CMake since it has to build a limited CMake first and
then use that for the full CMake.
This uses the existing CMake 3.22 from the container to build the CMake
from the Swift checkout with SSL disabled, testing disabled, and the
interactive curses UI disabled to improve the overall build times.
* Fixing flags for static SDK build
Updating the C++ compiler flags.
- `-stdlib=libc++`: modifies the stdlib header search paths, so that
needs to be on the cxx call.
- `-unwindlib=libunwind`: should only be needed on the link job, but
one of the dependencies was complaining about missing unwind symbols
without it, so I'm guessing they're using the wrong variable in their
build system.
- CMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBARARY: The cmake try-compile
was trying to dynamically link and complaining about the missing
crtbeginS.o and crtendS.o, which we shouldn't need since this is only
for statically linking. One thing to note is that this will cause
CMake symbol checks to emit the wrong result, saying that the symbol
is always available.
https://gitlab.kitware.com/cmake/cmake/-/issues/18121
Fixing the variable name in the toolchain file to specify the triple
correctly.
Also adding flags for hooking up the Swift-Foundation library sources.
* More cleanups
This patch is just general clean-ups that make iterating with the script
locally a bit easier.
0 commit comments