How to compile(AOT) a @njit generator?

for example,a simple generator like code below:

from numba import njit
from numba import types
from numba.pycc import CC
cc = CC('test')

@cc.export('run1', 'i8(i8)')
@njit
def run1(i):
    for j in range(i):
        yield j

if __name__ == "__main__":
    cc.compile()

it’s absolute not work. cause I don’t know how to fill the ‘cc.export’ part.
someone has been succeed on it? pls help me