While compiling Swift on Mac machine, there is a dynamic library libswiftDemangle.dylib
created. I need the dynamic library created on Linux machine as well, however, the dynamic library isn't created after a compilation of a source code.
The file CMakeLists.txt
at lib/SwiftDemangle/CMakeLists.txt
contains:
add_swift_library(swiftDemangle SHARED
SwiftDemangle.cpp
MangleHack.cpp
LINK_LIBRARIES swiftBasic)
directive, however the library isn't created.
I use this command ./swift/utils/build-script -R -c --build-subdir build --install-prefix /mnt/servers/swift/install -j4
to build the project, eventually it runs cmake
and ninja
to build the project.
Any ideas?
add_swift_library
, maybe it would give you some clues. – Flatcarhowever the library isn't created.
- What is this mean? Output of build process doesn't show that library is built? Or you just cannot find created.dylib
file? – Parrisch./cmake/modules/AddSwift.cmake
– Garfield