mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
better error message when C compilation fails
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
#
|
||||
# The Nimrod Compiler
|
||||
# (c) Copyright 2012 Andreas Rumpf
|
||||
# (c) Copyright 2013 Andreas Rumpf
|
||||
#
|
||||
# See the file "copying.txt", included in this
|
||||
# distribution, for details about the copyright.
|
||||
@@ -573,7 +573,12 @@ proc CallCCompiler*(projectfile: string) =
|
||||
else:
|
||||
res = execProcesses(cmds, {poUseShell, poParentStreams},
|
||||
gNumberOfProcessors)
|
||||
if res != 0: rawMessage(errExecutionOfProgramFailed, [])
|
||||
if res != 0:
|
||||
if gNumberOfProcessors <= 1:
|
||||
rawMessage(errExecutionOfProgramFailed, [])
|
||||
else:
|
||||
rawMessage(errGenerated, " execution of an external program failed; " &
|
||||
"rerun with --parallelBuild:1 to see the error message")
|
||||
if optNoLinking notin gGlobalOptions:
|
||||
# call the linker:
|
||||
var it = PStrEntry(toLink.head)
|
||||
|
||||
@@ -132,6 +132,7 @@ proc exec(cpu: PCPU) =
|
||||
let opcode = cpu.mem.readByte(cpu.r.pc)
|
||||
#echo("OPCODE: 0x", toHex(opcode, 2))
|
||||
cpu.r.pc.inc()
|
||||
# PROBLEM: 0x7B is part of some range later but the compiler does not care!
|
||||
case opcode
|
||||
of 0x06:
|
||||
# LD B, n
|
||||
|
||||
2
todo.txt
2
todo.txt
@@ -13,6 +13,7 @@ version 0.9.2
|
||||
- acyclic vs prunable; introduce GC hints
|
||||
- CGEN: ``restrict`` pragma + backend support; computed goto support
|
||||
- document NimMain and check whether it works for threading
|
||||
- implement ``system.locals`` magic iterator
|
||||
|
||||
|
||||
Bugs
|
||||
@@ -31,6 +32,7 @@ Bugs
|
||||
in c++ mode)
|
||||
- bootstrapping does not work in C++ mode
|
||||
- case statement exhaustiveness checking is still wrong
|
||||
- the new m&s GC is still buggy
|
||||
|
||||
|
||||
version 0.9.4
|
||||
|
||||
Reference in New Issue
Block a user