mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00

- fixes issues where the activated release dmd overrides and hijacks the link paths of the generated dmd (by it's set LIBRARY_PATH/LD_LIBRARY_PATH) - build and test commands already activate and deactivate host compiler where necessary
37 lines
1.2 KiB
Bash
Executable file
37 lines
1.2 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
set -uexo pipefail
|
|
|
|
################################################################################
|
|
# Set by the Semaphore job runner
|
|
################################################################################
|
|
|
|
export MODEL=${MODEL:-64} # can be {32,64}
|
|
export DMD=${DMD:-dmd} # can be {dmd,ldc,gdc}
|
|
|
|
################################################################################
|
|
# Static variables or inferred from Semaphore
|
|
# See also: https://semaphoreci.com/docs/available-environment-variables.html
|
|
################################################################################
|
|
|
|
export N=4
|
|
export OS_NAME=linux
|
|
export BRANCH=$BRANCH_NAME
|
|
export FULL_BUILD="${PULL_REQUEST_NUMBER+false}"
|
|
|
|
source ci.sh
|
|
|
|
################################################################################
|
|
# Always source a DMD instance
|
|
################################################################################
|
|
|
|
install_d "$DMD"
|
|
|
|
################################################################################
|
|
# Define commands
|
|
################################################################################
|
|
|
|
case $1 in
|
|
setup) setup_repos ;;
|
|
testsuite) testsuite ;;
|
|
esac
|