Hi! What is the best practice for determine at IR backend stage (IrGenerationExtension) for which platform code is generated? I need to make different logic for JS, WASM and JVM target platforms.
d
dmitriy.novozhilov
06/18/2024, 2:34 PM
There is a
IrPluginContext.platform
p
PHondogo
06/18/2024, 2:42 PM
Thanks, Dmitriy! It is nullable. In what case it can be null?
d
dmitriy.novozhilov
06/18/2024, 2:57 PM
In some cases in K1
In K2 it's always not-nullable