mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-01 19:33:42 +00:00
remove legacy code; the first iteration now can build Nim with cpp backend (#21373)
This commit is contained in:
6
koch.nim
6
koch.nim
@@ -295,11 +295,7 @@ proc boot(args: string) =
|
||||
|
||||
let nimStart = findStartNim().quoteShell()
|
||||
for i in 0..2:
|
||||
# Nim versions < (1, 1) expect Nim's exception type to have a 'raiseId' field for
|
||||
# C++ interop. Later Nim versions do this differently and removed the 'raiseId' field.
|
||||
# Thus we always bootstrap the first iteration with "c" and not with "cpp" as
|
||||
# a workaround.
|
||||
let defaultCommand = if useCpp and i > 0: "cpp" else: "c"
|
||||
let defaultCommand = if useCpp: "cpp" else: "c"
|
||||
let bootOptions = if args.len == 0 or args.startsWith("-"): defaultCommand else: ""
|
||||
echo "iteration: ", i+1
|
||||
var extraOption = ""
|
||||
|
||||
Reference in New Issue
Block a user