Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -450,16 +450,21 @@ install_compiler() {
download_and_unpack "$url" "$path/$1"

# gdc-4.8.2, gdc-4.9.0-alpha1, gdc-5.2, or gdc-5.2-alpha1
elif [[ $1 =~ ^gdc-([0-9]+\.[0-9]+(\.[0-9]+)?(-.*)?)$ ]]; then
elif [[ $1 =~ ^gdc-(([0-9]+\.[0-9]+(\.[0-9]+)?)([-+].*)?)$ ]]; then
local name=${BASH_REMATCH[0]}
local ver=${BASH_REMATCH[2]}
if [ $os != linux ]; then
fatal "no gdc binaries available for $os"
fi
case $arch in
x86_64) local triplet=x86_64-linux-gnu;;
x86) local triplet=i686-linux-gnu;;
esac
local url="http://gdcproject.org/downloads/binaries/$triplet/$name.tar.xz"
if [[ $ver > "5.2.0" ]]; then
local url="http://gdcproject.org/downloads/binaries/$ver/$triplet/$name.tar.xz"
else
local url="http://gdcproject.org/downloads/binaries/$triplet/$name.tar.xz"
fi

download_and_unpack "$url" "$path/$1"

Expand Down
1 change: 1 addition & 0 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ declare -A compilers=(
["dmd-master-2016-10-24"]="DMD64 D Compiler v2.073.0-master-ab9d712"
["ldc-1.0.0"]="LDC - the LLVM D compiler (1.0.0):"
["gdc-4.9.3"]="gdc (crosstool-NG crosstool-ng-1.20.0-232-gc746732 - 20150825-2.066.1-58ec4c13ec) 4.9.3"
["gdc-6.3.0+2.068.2"]="gdc (gdcproject.org 20161225-v2.068.2_gcc6) 6.3.0"
)

for compiler in "${!compilers[@]}"
Expand Down