def clang_modifier_win32(conf):
    """Configuration flags for executing clang on Windows"""
    v = conf.env
    v['cprogram_PATTERN']    = '%s.exe'

    v['cshlib_PATTERN']      = '%s.dll'
    v['implib_PATTERN']      = 'lib%s.dll.a'
    v['IMPLIB_ST']           = '-Wl,--out-implib,%s'

    v['CFLAGS_cshlib']       = []

    v.append_value('CFLAGS_cshlib', ['-DDLL_EXPORT']) # TODO adding nonstandard defines like this DLL_EXPORT is not a good idea

    # Auto-import is enabled by default even without this option,
    # but enabling it explicitly has the nice effect of suppressing the rather boring, debug-level messages
    # that the linker emits otherwise.
    v.append_value('LINKFLAGS', ['-Wl,--enable-auto-import'])