summary refs log tree commit diff stats
path: root/compiler/options.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/options.nim')
-rw-r--r--compiler/options.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/options.nim b/compiler/options.nim
index b38263ec5..899332b6e 100644
--- a/compiler/options.nim
+++ b/compiler/options.nim
@@ -110,6 +110,9 @@ var
 proc importantComments*(): bool {.inline.} = gCmd in {cmdDoc, cmdIdeTools}
 proc usesNativeGC*(): bool {.inline.} = gSelectedGC >= gcRefc
 
+template compilationCachePresent*: expr =
+  {optCaasEnabled, optSymbolFiles} * gGlobalOptions != {}
+
 const 
   genSubDir* = "nimcache"
   NimExt* = "nim"