diff options
-rw-r--r-- | Documentation/prerequisites-for-building.md | 13 | ||||
-rwxr-xr-x | buildscripts/buildvars-setup.sh | 10 | ||||
-rw-r--r-- | src/BuildIntegration/Microsoft.NETCore.Native.Unix.props | 2 |
3 files changed, 20 insertions, 5 deletions
diff --git a/Documentation/prerequisites-for-building.md b/Documentation/prerequisites-for-building.md index 802edc565..7f6970ce8 100644 --- a/Documentation/prerequisites-for-building.md +++ b/Documentation/prerequisites-for-building.md @@ -12,12 +12,19 @@ PowerShell also needs to be available from the PATH environment variable (it's t Install basic dependency packages: +First add a new package source to be able to install clang-3.9: +```sh +echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.9 main" | sudo tee /etc/apt/sources.list.d/llvm.list +wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add - +sudo apt-get update ``` -sudo apt-get install cmake llvm-3.5 clang-3.5 lldb-3.6 lldb-3.6-dev liblttng-ust liblttng-ust-dev uuid uuid-dev + +```sh +sudo apt-get install cmake clang-3.9 libicu52 libunwind8 ``` -# Mac OSX (10.10+) +# Mac OSX (10.11.5+) -1. Install [Command Line Tools for XCode 6.3.1](https://developer.apple.com/xcode/download/) or higher. +1. Install [Command Line Tools for XCode 8](https://developer.apple.com/xcode/download/) or higher. 2. Install [CMake](https://cmake.org/download/). Launch `/Applications/CMake.app/Contents/MacOS/CMake` GUI. Goto "OSX App Menu -> Tools -> Install For Command Line Use" and follow the steps. CMake < 3.6 has [a bug](https://cmake.org/Bug/view.php?id=16064) that can make `--install` fail. Do `sudo mkdir /usr/local/bin` to work around. 3. Install OpenSSL. Build tools have a dependency on OpenSSL. You can use [Homebrew](http://brew.sh/) to install it: with Homebrew installed, run `brew install openssl` followed by `ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/`, followed by `ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/`. diff --git a/buildscripts/buildvars-setup.sh b/buildscripts/buildvars-setup.sh index 7e259b407..ead93b646 100755 --- a/buildscripts/buildvars-setup.sh +++ b/buildscripts/buildvars-setup.sh @@ -149,7 +149,7 @@ export __UnprocessedBuildArgs= export __CleanBuild=0 export __VerboseBuild=0 export __ClangMajorVersion=3 -export __ClangMinorVersion=5 +export __ClangMinorVersion=9 export __CrossBuild=0 @@ -202,6 +202,14 @@ while [ "$1" != "" ]; do export __ClangMajorVersion=3 export __ClangMinorVersion=7 ;; + clang3.8) + export __ClangMajorVersion=3 + export __ClangMinorVersion=8 + ;; + clang3.9) + export __ClangMajorVersion=3 + export __ClangMinorVersion=9 + ;; cross) export __CrossBuild=1 ;; diff --git a/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props b/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props index 832339c6f..b82b5f8e9 100644 --- a/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props +++ b/src/BuildIntegration/Microsoft.NETCore.Native.Unix.props @@ -17,7 +17,7 @@ See the LICENSE file in the project root for more information. <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == '' and '$(TargetOS)' == 'OSX'">clang</CppCompilerAndLinker> - <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == ''">clang-3.5</CppCompilerAndLinker> + <CppCompilerAndLinker Condition="'$(CppCompilerAndLinker)' == ''">clang-3.9</CppCompilerAndLinker> <CppCompiler>$(CppCompilerAndLinker)</CppCompiler> <CppLinker>$(CppCompilerAndLinker)</CppLinker> </PropertyGroup> |