'Invoke the compiler to compile a function to be used inside a
nopython function, but without generating code to call that
function.
Note this context\'s flags are not inherited.'

def compile_subroutine_no_cache(self, builder, impl, sig, locals={}, flags=None):

    from numba import compiler
    codegen = self.codegen()
    library = codegen.create_library(impl.__name__)
    if (flags is None):
        flags = compiler.Flags()
    flags.set('no_compile')
    flags.set('no_cpython_wrapper')
    cres = compiler.compile_internal(self.typing_context, self, library, impl, sig.args, sig.return_type, flags, locals=locals)
    codegen.add_linking_library(cres.library)
    return cres
