Welcome to mirror list, hosted at ThFree Co, Russian Federation.

start-compiler-server.sh « build « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c74d4c24b2ea176664a32fdd95913dab1d10822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# usage: start-compiler-server.sh <working directory> <log path> <pipename>
# ensure that VBCS_RUNTIME and VBCS_LOCATION environment variables are set.

set -u
set -e

if [ -s "$VBCS_LOCATION" ]; then
    CMD="RoslynCommandLineLogFile=$2 $VBCS_RUNTIME --gc-params=nursery-size=64m \"$VBCS_LOCATION\" -pipename:$3 &"
    echo "Log location set to $2"
    touch "$2"
    echo "cd $1; bash -c \"$CMD\""
    cd "$1"
    bash -c "$CMD"
    RESULT=$?
    if [ $RESULT -eq 0 ]; then
        echo Compiler server started.
    else
        echo Failed to start compiler server.
    fi;
else
    echo No compiler server found at path "$VBCS_LOCATION". Ensure that VBCS_LOCATION is set in config.make or passed as a parameter to make.
    echo Use ENABLE_COMPILER_SERVER=0 to disable the use of the compiler server and continue to build.
    exit 1
fi;