tilelang.contrib.msvc¶

Functions¶

get_env_path(compiler_env)

get_windows_compiler()

Resolve the preferred Windows host compiler.

get_msvc_subprocess_env()

Return the resolved MSVC subprocess environment.

get_msvc_environment_error()

create_shared(output, objects[, options, cc, cwd, ...])

Module Contents¶

tilelang.contrib.msvc.get_env_path(compiler_env)¶
Parameters:

compiler_env (dict[str, str])

Return type:

str | None

tilelang.contrib.msvc.get_windows_compiler()¶

Resolve the preferred Windows host compiler.

Returns (path, kind) where kind is "clang-cl" or "msvc". Set the TILELANG_DISABLE_CLANG_CL env var to force the legacy cl.exe path.

Return type:

tuple[str | None, str | None]

tilelang.contrib.msvc.get_msvc_subprocess_env()¶

Return the resolved MSVC subprocess environment.

Memoized via functools.cache() (matching contrib/cc.py and cache/kernel_cache.py). Concurrent first callers may each spawn vswhere.exe / VsDevCmd.bat once; functools.cache keeps only the winning result. Subsequent calls hit the cache directly with no locking.

Return type:

dict[str, str] | None

tilelang.contrib.msvc.get_msvc_environment_error()¶
Return type:

str | None

tilelang.contrib.msvc.create_shared(output, objects, options=None, cc=None, cwd=None, ccache_env=None)¶
Parameters:

output (str)