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
commit e24d0e5faf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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