Created
September 14, 2019 09:34
-
-
Save dannliu/950d21548194a60be2f2f3d80757d11f to your computer and use it in GitHub Desktop.
Swift build on Linux (Ubuntu 18.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Env | |
===== | |
LSB Version: core-9.20170808ubuntu1-noarch:security-9.20170808ubuntu1-noarch | |
Distributor ID: Ubuntu | |
Description: Ubuntu 18.04.3 LTS | |
Release: 18.04 | |
Codename: bionic | |
Build Steps: | |
===== | |
Step1: | |
swift/utils/build-script --preset=buildbot_linux,foundation=debug install_destdir=/data/swift-source/tmp installable_package=/data/swift-source/tmp/swift-debug.tar.gz | |
dir structure in buildbot_linux: | |
root@Swift:/data/swift-source/build/buildbot_linux# ls | |
cmark-linux-x86_64 libdispatch_static-linux-x86_64 llvm-linux-x86_64 xctest-linux-x86_64 | |
foundation-linux-x86_64 libicu-linux-x86_64 ninja-build | |
libcxx-linux-x86_64 llbuild-linux-x86_64 swift-linux-x86_64 | |
libdispatch-linux-x86_64 lldb-linux-x86_64 swiftpm-linux-x86_64 | |
Step2: | |
cd foundation-linux-x86_64 | |
ninja | |
ninja test | |
root@Swift:/data/swift-source/build/buildbot_linux/foundation-linux-x86_64# ninja test | |
[0/1] Running tests... | |
Test project /data/swift-source/build/buildbot_linux/foundation-linux-x86_64 | |
No tests were found!!! | |
Step 3: (Follow the scripts provide by @drodriguez https://forums.swift.org/t/how-to-quick-build-and-test-foundation-on-linux/28464/7) | |
cmake --build . -- | |
camke --build . -- test | |
root@Swift:/data/swift-source/build/buildbot_linux/foundation-linux-x86_64# cmake --build . -- test | |
[0/1] Running tests... | |
Test project /data/swift-source/build/buildbot_linux/foundation-linux-x86_64 | |
No tests were found!!! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment