Compiling nimrtl.nim as static library

2023-07-11 Thread hunterbr
thx for clarifying, in my case I would need it for a very special static analysis case, no big deal IMHO from a language perspective. Totally understand why it is not supported, just wanted to double check I am not missing something.

Compiling nimrtl.nim as static library

2023-07-10 Thread juancarlospaco
Time to Deprecate some switches...

Compiling nimrtl.nim as static library

2023-07-09 Thread Araq
These things are not much of a problem but we don't support static linking of the stdlib. Why not? Because the combinatorial explosion of switches is already killing us.

Compiling nimrtl.nim as static library

2023-07-09 Thread termer
People have talked about this before, and the problems come down to this: > * GC would need to be ARC/ORC, otherwise you would need to manually import > and call NimMain > * You would need to create what would effectively be Nim header files to > import the stdlib's procs > * The compiler

Compiling nimrtl.nim as static library

2023-07-07 Thread PMunch
I'm not sure a static version of nimrtl would even work. The whole point of nimrtl is to make sure that each loaded dynamic library uses the same GC, with the same state. By statically linking to it you would end up with a copy of the global state which is the whole reason you'd use nimrtl in th

Compiling nimrtl.nim as static library

2023-07-07 Thread hunterbr
Hi, my goal is to statically compile nimrtl.nim, but nim c -d:release --opt:size --app:staticlib --dynlibOverrideAll --nimcache:.nimcachelocal --out:nimrtl.lib .nimrtl.nim fails with a bunch of compiler error on e.g. CC: pure/os.nim In file included from C:Usershunte.choosenimtoolchainsnim-1.6