Skip to content

--import:libbacktrace, -g and --stacktrace:off shouldn't be needed #12

@timotheecour

Description

@timotheecour

nimStackTraceOverride should be usable with a single switch.
this works:

nim r --import:libbacktrace -d:nimStackTraceOverride -g main.nim

but is not ideal because libbacktrace gets imported everywhere

adding explicit import libbacktrace is also not ideal because it requires changing source file

proposal

  • make -d:nimStackTraceOverride cause an import libbacktrace where it's neeed (probably a single file in nim repo)

if this needs compiler support, it's still worth it.

  • furthermore, -g should be implied by -d:nimStackTraceOverride
  • ditto with --stacktrace:off

we can also add: --stacktrace:libbacktrace nim flag to make it more official

(this may require fixing in nim repo instead of here, but let's keep this open until this is fixed, I can also look into it)

note

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions