diff options
author | Araq <rumpf_a@web.de> | 2013-02-28 21:28:35 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-02-28 21:28:35 +0100 |
commit | dc07732daa71d0868dd4c5901fa1a23c0dcd382d (patch) | |
tree | 833607dbed44f816e6d2c86efa797a5ab66ab812 /compiler | |
parent | d13bcf657503a84f3568b86a7cfce4a28be03f7b (diff) | |
parent | c0201b8d4a587e5ae84f350b9566e94da2deb0aa (diff) | |
download | Nim-dc07732daa71d0868dd4c5901fa1a23c0dcd382d.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/main.nim | 1 | ||||
-rwxr-xr-x | compiler/msgs.nim | 4 | ||||
-rwxr-xr-x | compiler/nimrod.cfg | 2 | ||||
-rwxr-xr-x | compiler/options.nim | 1 | ||||
-rw-r--r-- | compiler/service.nim | 1 |
5 files changed, 5 insertions, 4 deletions
diff --git a/compiler/main.nim b/compiler/main.nim index 04e550aea..acd910514 100755 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -560,6 +560,7 @@ proc MainCommand = wantMainModule() CommandSuggest() of "serve": + isServing = true gGlobalOptions.incl(optCaasEnabled) msgs.gErrorMax = high(int) # do not stop after first error serve(MainCommand) diff --git a/compiler/msgs.nim b/compiler/msgs.nim index 0f2affc36..bec30388c 100755 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -523,8 +523,8 @@ proc SuggestWriteln*(s: string) = stdoutSocket.send(s & "\c\L") proc SuggestQuit*() = - if isNil(stdoutSocket): quit(0) - else: + if not isServing: quit(0) + elif not isNil(stdoutSocket): stdoutSocket.send("\c\L") raise newException(ESuggestDone, "suggest done") diff --git a/compiler/nimrod.cfg b/compiler/nimrod.cfg index aa49729b9..a0e59aa09 100755 --- a/compiler/nimrod.cfg +++ b/compiler/nimrod.cfg @@ -6,7 +6,7 @@ hint[XDeclaredButNotUsed]:off path:"llvm" path:"$projectPath/.." -path:"$nimrod/packages/docutils" +path:"$lib/packages/docutils" define:booting diff --git a/compiler/options.nim b/compiler/options.nim index e809c4e96..ad7c834dc 100755 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -105,6 +105,7 @@ var gEvalExpr* = "" # expression for idetools --eval gLastCmdTime*: float # when caas is enabled, we measure each command gListFullPaths*: bool + isServing*: bool = false proc importantComments*(): bool {.inline.} = gCmd in {cmdDoc, cmdIdeTools} proc usesNativeGC*(): bool {.inline.} = gSelectedGC >= gcRefc diff --git a/compiler/service.nim b/compiler/service.nim index defdbceb7..eaf3693ce 100644 --- a/compiler/service.nim +++ b/compiler/service.nim @@ -90,4 +90,3 @@ proc serve*(action: proc (){.nimcall.}) = else: echo "Invalid server.type:", typ quit 1 - |