remove legacy code; the first iteration now can build Nim with cpp backend (#21373)
This commit is contained in:
parent
56a4d246a4
commit
e24d0e5faf
1 changed files with 1 additions and 5 deletions
6
koch.nim
6
koch.nim
|
|
@ -295,11 +295,7 @@ proc boot(args: string) =
|
||||||
|
|
||||||
let nimStart = findStartNim().quoteShell()
|
let nimStart = findStartNim().quoteShell()
|
||||||
for i in 0..2:
|
for i in 0..2:
|
||||||
# Nim versions < (1, 1) expect Nim's exception type to have a 'raiseId' field for
|
let defaultCommand = if useCpp: "cpp" else: "c"
|
||||||
# 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 bootOptions = if args.len == 0 or args.startsWith("-"): defaultCommand else: ""
|
let bootOptions = if args.len == 0 or args.startsWith("-"): defaultCommand else: ""
|
||||||
echo "iteration: ", i+1
|
echo "iteration: ", i+1
|
||||||
var extraOption = ""
|
var extraOption = ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue