Skip to content

[TODO] could nimcache be generated out-of-source (in /tmp) like rdmd does in D? #7402

@timotheecour

Description

@timotheecour

could nimcache be generated out-of-source (in /tmp) like rdmd does in D?

nim c -r util.nim
creates
util, nimcache

dmd -run util.d doesn't create anything (only in /tmp) which is nice
can be seen with: writeln(thisExePath);
eg:
dmd -run:
/private/var/tmp/dmd_run1WOziZ
rdmd:
/private/var/folders/ll/dtasdfasf30dny4y61tf_80000gn/T/.rdmd-501/rdmd-main.d-B6C80F6AC29F80D70F072890F37AA29E/main
which hashes all compiler options so it'll run instantly on next use

post close TODO

other aspects, eg generate the binary in nimcache, caching the resulting binary

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions