summary refs log tree commit diff stats
path: root/compiler/modules.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-02-20 01:15:43 +0100
committerAraq <rumpf_a@web.de>2018-02-20 01:15:43 +0100
commit2fcc1637465df3ccc04394ee4703330cc51ee493 (patch)
treefa1efc9eed654f6476ba25d35e91d04fb18f3ec6 /compiler/modules.nim
parent5fe0c386ea4d0ce288cc4ae3ed40ae603db991ce (diff)
downloadNim-2fcc1637465df3ccc04394ee4703330cc51ee493.tar.gz
symbol files: more progress
Diffstat (limited to 'compiler/modules.nim')
-rw-r--r--compiler/modules.nim16
1 files changed, 9 insertions, 7 deletions
diff --git a/compiler/modules.nim b/compiler/modules.nim
index ab384311e..ede10a0f4 100644
--- a/compiler/modules.nim
+++ b/compiler/modules.nim
@@ -169,13 +169,15 @@ proc compileModule*(graph: ModuleGraph; fileIdx: int32; cache: IdentCache, flags
     if sfMainModule in result.flags:
       gMainPackageId = result.owner.id
 
-    if gCmd in {cmdCompileToC, cmdCompileToCpp, cmdCheck, cmdIdeTools}:
-      rd = handleSymbolFile(result, cache)
-      if result.id < 0:
-        internalError("handleSymbolFile should have set the module's ID")
-        return
-    else:
-      result.id = getModuleId(toFullPath(fileIdx))
+    when false:
+      if gCmd in {cmdCompileToC, cmdCompileToCpp, cmdCheck, cmdIdeTools}:
+        rd = handleSymbolFile(result, cache)
+        if result.id < 0:
+          internalError("handleSymbolFile should have set the module's ID")
+          return
+      else:
+        discard
+    result.id = getModuleId(toFullPath(fileIdx))
     discard processModule(graph, result,
       if sfMainModule in flags and gProjectIsStdin: stdin.llStreamOpen else: nil,
       rd, cache)
n171' href='#n171'>171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316