natario1
07/29/2022, 4:40 PM@CName
functions and have them exported in the final K/N binary. But looking at the file with nm
, I can see that the generated symbol is not exported. Is it even possible to achieve this?
Maybe the export pipeline runs before IrGeneration
and so my symbol is useless? Or I’m doing something wrong. I’m generating my function and then calling irFile.declarations.add(function)
, something I’m a bit unsure of.shikasd
07/30/2022, 12:26 AMMaybe the export pipeline runs before IrGeneration and so my symbol is useless?
Yes, exactly that. Consider using KSP instead, it generates source code directly and the compiler should pick it up for this case:)
natario1
07/30/2022, 10:24 AM