rjhdby
06/28/2018, 10:54 AMkotlinc -opt ./file.kt -o file -produce bitcode
llc -filetype=obj file.bc -o file.o
But it does not include standard library and result of cc
compilation is:
/usr/bin/ld: file.o: relocation R_X86_64_32 against undefined symbol `ktype:kotlin.text.StringBuilder' can not be used when making a shared object; recompile with -fPIC
olonho
06/28/2018, 10:57 AM-produce static
rjhdby
06/28/2018, 11:19 AM-produce (-p) {program|dynamic|framework|library|bitcode}
olonho
06/28/2018, 11:33 AM