def set_option(*opt):
    inp = [create_string_buffer(x.encode('ascii')) for x in (('libhlc',) + opt)]
    argc = len(inp)
    argv = (c_char_p * argc)()
    for i in range(argc):
        argv[i] = addressof(inp[i])
    hlc.HLC_SetCommandLineOption(argc, byref(argv))
Use this for setting debug flags to libHLC using the same options
dataset/ETHPy150Open numba/numba/numba/hsa/hlc/libhlc.py/set_option