diff options
author | Pat Gavlin <pagavlin@microsoft.com> | 2015-03-02 15:27:12 -0800 |
---|---|---|
committer | Pat Gavlin <pagavlin@microsoft.com> | 2015-03-02 15:27:12 -0800 |
commit | abb7b0ecfd7b7c589b2e9d775da615416343a19f (patch) | |
tree | d0d229468735974cd89ea0cab8206c3ec550adc1 /build.sh | |
parent | ebbc70c220c16d7936eaedc768351ee17c3687a4 (diff) | |
download | coreclr-abb7b0ecfd7b7c589b2e9d775da615416343a19f.tar.gz coreclr-abb7b0ecfd7b7c589b2e9d775da615416343a19f.tar.bz2 coreclr-abb7b0ecfd7b7c589b2e9d775da615416343a19f.zip |
Fixes.
- Enable @rpath support on OS X and silence the policy warning.
- Replace usage of uname -o, which is Linux-specific, with uname -s,
which is not.
- Document the WITH_LLDB_{LIBS,INCLUDES} variables.
- Stringify a couple of arguments to find_{library,paths} and
include_directories.
- Unstringify an argument to cmake in gen-buildsys-clang.sh.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -88,15 +88,22 @@ echo "Commencing CoreCLR Repo build" # Obtain the location of the bash script to figure out whether the root of the repo is. __ProjectRoot="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" __BuildArch=x64 -# Use uname to determine what the OS is. -if [ $(uname -o | grep -i Linux) ]; then - __BuildOS=linux -elif [ $(uname -s | grep -i Darwin) ]; then - __BuildOS=mac -else - echo "Unsupported OS detected, assuming linux" - __BuildOS=linux -fi +# Use uname to determine what the OS is. +OSName=$(uname -s) +case $OSName in + Linux) + __BuildOS=linux + ;; + + Darwin) + __BuildOS=mac + ;; + + *) + echo "Unsupported OS $OSName detected, configuring as if for Linux" + __BuildOS=linux + ;; +esac __MSBuildBuildArch=x64 __BuildType=debug __CMakeArgs=DEBUG |