For HCC and HIP, in order to run kernels on our GPUs, we need everything to be inlined. We are moving towards ThinLTO implementation of the Link-time. To take advantage of ThinLTO's cross-module function importing, we must have all functions imported to kernel files including weak functions.
Since Function Importing prevents importing weak functions due to ambiguity, we would like to set a flag which can force weak functions to be imported as well.
Is it possible not to expose this option through extern? Generally these options should be kept static.