Guest User

Untitled

a guest
Jan 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # usage: start-compiler-server.sh <working directory> <log path> <pipename>
  3. # ensure that VBCS_RUNTIME and VBCS_LOCATION environment variables are set.
  4.  
  5. set -u
  6. set -e
  7.  
  8. if [ -s "$VBCS_LOCATION" ]; then
  9. cd $1
  10. echo "RoslynCommandLineLogFile=$2 $VBCS_RUNTIME --gc-params=nursery-size=64m $VBCS_LOCATION -pipename:$3 &"
  11. echo . > "$2"
  12. RoslynCommandLineLogFile=$2 $VBCS_RUNTIME --gc-params=nursery-size=64m "$VBCS_LOCATION" -pipename:$3 &
  13. RESULT=$?
  14. if [ $RESULT -eq 0 ]; then
  15. echo Compiler server started with PID $!.
  16. else
  17. echo Failed to start compiler server.
  18. fi;
  19. else
  20. 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.
  21. echo Use ENABLE_COMPILER_SERVER=0 to disable the use of the compiler server and continue to build.
  22. exit 1
  23. fi;
Add Comment
Please, Sign In to add comment