remove legacy code; the first iteration now can build Nim with cpp backend (#21373)

This commit is contained in:
ringabout
2023-02-15 20:03:11 +08:00
committed by GitHub
parent 56a4d246a4
commit e24d0e5faf

View File

@@ -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 = ""