-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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:nimStackTraceOverridecause animport libbacktracewhere it's neeed (probably a single file in nim repo)
if this needs compiler support, it's still worth it.
- furthermore,
-gshould 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
- potentially could be fixed by --importmain:foo to only cause import in main module timotheecour/Nim#688
Metadata
Metadata
Assignees
Labels
No labels