Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--importmain:foo to only cause import in main module #688

Open
timotheecour opened this issue Apr 7, 2021 · 1 comment
Open

--importmain:foo to only cause import in main module #688

timotheecour opened this issue Apr 7, 2021 · 1 comment

Comments

@timotheecour
Copy link
Owner

refs nim-lang#4451 (comment)
a flag --profiler should be sufficient and not require changing the sources with

when compileOption("profiler"):
  import nimprof

note that we can do --import:nimprof but that's also not satisfying as adds an import in all modules.

The exact same situation happens with libbacktrace, currently requiring either editing sources with import libbacktrace or passing --import:libbacktrace; see status-im/nim-libbacktrace#12

how about:

@timotheecour
Copy link
Owner Author

see also nim-lang#18251

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant