Nim: Can not compile with --os:standalone --gc:none

Created on 20 Apr 2018  路  5Comments  路  Source: nim-lang/Nim

# test.nim
# empty
# panicoverride.nim
proc panic(s: string) = discard
proc rawoutput(s: string) = discard



md5-db570e1ee7ae94897b7e413f3b68f219



nim c --gc:none --os:standalone --stacktrace:off ~/test.nim
Error: system module needs 'newSeq'

Most helpful comment

yeah, there are plans to make --deadCodeElim:on the default and remove the switch altogether.

All 5 comments

But it works with --deadCodeElim:on. Should --os:standalone or --gc:none imply --deadCodeElim:on?

yeah, there are plans to make --deadCodeElim:on the default and remove the switch altogether.

Why remove the switch? The ability to disable it might come in handy someday.

Why remove the switch? The ability to disable it might come in handy someday.

It's battle-tested to the point the language works better with it than without it.

Closing since deadCodeElim is now always on.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timotheecour picture timotheecour  路  33Comments

mratsim picture mratsim  路  38Comments

niv picture niv  路  40Comments

kvinwang picture kvinwang  路  29Comments

Araq picture Araq  路  74Comments