tag | 67a6f889d9c947c62c68531275b4f462b4097da3 | |
---|---|---|
tagger | Swift Automation <swift_jenkins@apple.com> | Thu Aug 25 19:38:16 2016 -0500 |
object | 17db3de1de5efd2a4b50c771905c61f3e109767b |
Tag build swift-DEVELOPMENT-SNAPSHOT-2016-08-25-a
commit | 17db3de1de5efd2a4b50c771905c61f3e109767b | [log] [tgz] |
---|---|---|
author | Enrico Granata <granata.enrico@gmail.com> | Wed Aug 24 17:44:54 2016 -0700 |
committer | Enrico Granata <granata.enrico@gmail.com> | Wed Aug 24 17:44:54 2016 -0700 |
tree | 1c95bb24650d88ab5b4352b41982194345111b76 | |
parent | 6ab2d15bc7fd4ba46abebb891548919ec823963e [diff] |
Change the options for check-ast-context; the old option set is trivial to pass at the command-line, but from the Xcode UI, given our two alternate directory layouts and build modes, and all that good stuff, this new option set is much easier to configure I have a local build working with this script embedded (via build-swift-cmake.py) which correctly passes/fails based on check-ast-context The only issue remaining is that a run takes about a minute (most spent parsing - only checked against a debug build of clang); the solution to that is to store the last successful hash of SwiftASTContext.cpp (one that validates) and then only parse it anew if the hash changes Once that is implemented, this should be good to plug into our builds
Status | |
---|---|
macOS | |
Ubuntu 14.04 | |
Ubuntu 15.10 |
Welcome to the Swift Debugger and REPL!
Swift is a new, high performance systems programming language. It has a clean and modern syntax, offers seamless access to existing C and Objective-C code and frameworks, and is memory safe (by default).
This repository covers the Swift Debugger and REPL support, built on top of the LLDB Debugger.
To build LLDB for Swift, you must have the following prerequisites installed on your development system:
OS X Requirements
OS X 10.11 (El Capitan) or later.
Xcode 7.2 Beta 4 or later.
Cmake (version 2.8.12.2 or later)
Linux x86_64 (Ubuntu 14.04, Ubuntu 15.10)
Clang 3.5 or later.
Cmake (version 2.8.12.2 or later)
Python 2.7
Once the pre-requisites are satisfied, follow these steps from a bash-like shell:
mkdir myswift cd myswift git clone https://github.com/apple/swift-lldb.git lldb lldb/scripts/build-swift-cmake.py --test
The lldb build script will clone additional repositories for required dependencies if they are not already present. An optional --update
argument can be used to refresh these required repositories. Products of the build process will be placed in the build/
directory under the root source directory.
LLDB for Swift introduces new dependencies that do not exist with core LLDB. In particular, LLDB for Swift makes extensive use of the Swift codebase.
Each one of the directories listed below underneath the overall source_root are backed by a Swift.org repository:
. +-- clang/ | +-- cmark/ | +-- lldb/ | +-- llvm/ | +-- ninja/ | +-- swift/
Details on the contents:
clang
Contains the stable version of Clang used by Swift.
cmark
Contains markdown support used by Swift.
lldb
Contains the LLDB source that includes Swift support. All of LLDB for Swift is contained in this repository. Core LLDB contents are merged into this repository. No other copy of LLDB source code is required.
llvm
Contains the stable version of LLVM used by Swift.
ninja
Contains the Ninja build system.
swift
Contains the Swift Language and Swift Runtime code.
Note: If you don‘t use the build-swift-cmake.py script to do the initial clone of the related project repositories, you’ll need to manually clone them to the names above:
clang
cmark
llvm
The swift-lldb project enhances the core LLDB project developed under the LLVM Project. Swift support in the debugger is added via the existing source-level plugin infrastructure, isolated to files that are newly introduced in the lldb-swift repository.
Files that come from the core LLDB project can be readily identified by their use of the LLVM comment header. As no local changes should be made to any of these files, follow the standard guidance for upstream changes.