-
Notifications
You must be signed in to change notification settings - Fork 25
Question about build process #134
Comments
|
Thank you very much for your reply. Instruction for linux, has extra steps, like install NDK. Shouldn't this to be the same? Add extra steps. And step about SSL might be obv extra link to repo, as last time I build it for iOS, I suffered a lot. But idea that having it in written form with more explanation will help community. And people like me specifically, to understand complexity of it. |
btw: I missed that Swift 5.5.1 was already released with Xcode 13.1. Will plan Toolchain update.
You mean to have e.g. |
There is also: https://github.com/apple/swift/blob/main/docs/AndroidBuild.md with steps for android SDK on windows So ideal would be to have document there, but it will require approve from them and plus, they might actually require to have all steps fully reproducabe, so no way to have easy line like: Having here document, which will describe steps, which need to be taken to build toolchain and may be links to js files, which do it, would be also good. So if someone later will decide to add document to swift repo, will have a good start. |
Anybody can update Docs in Swift repo :) In order to see which Cmake commands executed during build you can try to launch build in $ node main.js build --dry-run
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"llvm-project" Configure [host] is started.
mkdir -p "/Volumes/Shared/Git/MyProjects/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project"
cd /Volumes/Shared/Git/MyProjects/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project && cmake \
-G Ninja \
-S /Volumes/Shared/Git/MyProjects/swift-everywhere-toolchain/ToolChain/Sources/llvm-project/llvm \
-B /Volumes/Shared/Git/MyProjects/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project \
-D CMAKE_BUILD_TYPE=Release \
-D LLVM_INCLUDE_EXAMPLES=false \
-D LLVM_INCLUDE_TESTS=false \
-D LLVM_INCLUDE_DOCS=false \
-D LLVM_BUILD_TOOLS=false \
-D LLVM_INSTALL_BINUTILS_SYMLINKS=false \
-D LLVM_ENABLE_LIBXML2=FALSE \
-D LLVM_TARGETS_TO_BUILD="ARM;AArch64;X86" \
-D LLVM_ENABLE_ASSERTIONS=TRUE \
-D LLVM_BUILD_EXTERNAL_COMPILER_RT=TRUE \
-D CMAKE_INSTALL_PREFIX=/ \
-D LLVM_ENABLE_PROJECTS="clang" \
-D HAVE_CXX_ATOMICS64_WITHOUT_LIB=TRUE \
-D HAVE_CXX_ATOMICS_WITHOUT_LIB=TRUE
"llvm-project" Configure [host] is completed.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
"llvm-project" Build [host] is started.
mkdir -p "/Volumes/Shared/Git/MyProjects/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project"
cd /Volumes/Shared/Git/MyProjects/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project && ninja -C /Volumes/Shared/Git/MyProjects/swift-everywhere-toolchain/ToolChain/Build/darwin-host/llvm-project -j5 clang llvm-tblgen clang-tblgen llvm-libraries clang-libraries
"llvm-project" Build [host] is completed.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
# And many more commands . . . This will give you information similar to one written in https://github.com/apple/swift/blob/main/docs/AndroidBuild.md |
Thank you, this is kind of information I was looking for. Just didn't run build from JS on my own yet. |
I'm new to build swift on android and only started to checking how it works
I have a few questions about the way you build your toolchain.
Thank you for your help
The text was updated successfully, but these errors were encountered: