File tree 1 file changed +16
-6
lines changed
1 file changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ uploading SSH keys to GitHub):
83
83
cd swift
84
84
./utils/update-checkout --clone-with-ssh
85
85
86
+ #### CMake
86
87
[ CMake] ( http://cmake.org ) is the core infrastructure used to configure builds of
87
88
Swift and its companion projects; at least version 2.8.12.2 is required. Your
88
89
favorite Linux distribution likely already has a CMake package you can install.
@@ -92,23 +93,32 @@ command line tools to your `PATH`:
92
93
93
94
export PATH=/Applications/CMake.app/Contents/bin:$PATH
94
95
96
+ #### Ninja
95
97
[ Ninja] ( https://ninja-build.org ) is the current recommended build system
96
98
for building Swift and is the default configuration generated by CMake. If
97
99
you're on OS X or don't install it as part of your Linux distribution, clone
98
100
it next to the other projects and it will be bootstrapped automatically:
99
101
100
- git clone https://github.com/ninja-build/ninja.git
102
+ ##### Build from source
103
+ ** Via https**
101
104
102
- or
105
+ git clone https://github.com/ninja-build/ninja.git && cd ninja
106
+ git checkout release
107
+ cat README
103
108
104
- git clone [email protected] :ninja-build/ninja.git
109
+ ** Via ssh **
105
110
106
- You can also install CMake and Ninja on OS X using a third-party
107
- packaging tool like [ Homebrew] ( http://brew.sh ) …
111
+ git clone [email protected] :ninja-build/ninja.git && cd ninja
112
+ git checkout release
113
+ cat README
114
+
115
+ #### Install via third-party packaging tool (OSX only)
116
+
117
+ ** [ Homebrew] ( http://brew.sh/ ) **
108
118
109
119
brew install cmake ninja
110
120
111
- …or [ MacPorts] ( https://macports.org ) .
121
+ ** [ MacPorts] ( https://macports.org ) **
112
122
113
123
sudo port install cmake ninja
114
124
You can’t perform that action at this time.
0 commit comments