Open sapir opened 4 years ago
-shared
should give a cdylib
. -c
or something like that should give an rlib
(crate type lib
, actually a renamed .a
file) There are also staticlib
(.a without rust metadata) and dylib
(.so with rust metadata in the .rustc
section)
-shared
should give acdylib
.
oops, right
There are also
staticlib
(.a without rust metadata) anddylib
(.so with rust metadata in the.rustc
section)
I think it's ok not to support these at first.
std::rt::lang_start_internal
, not being a template function, apparently requires linking with libstd
-shared
is specified, use "--crate-type lib"main
shim, like https://github.com/bjorn3/rustc_codegen_cranelift/blob/7ff01a4d59779609992aad947264abcc64617917/src/main_shim.rs