Added enable_hlsl option to glslang.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
from git import Repo
|
||||
from git.exc import GitError
|
||||
import hashlib
|
||||
import inspect
|
||||
from SCons.Script import *
|
||||
|
||||
Import('env')
|
||||
@@ -86,7 +87,13 @@ def _git_recipe(env: Environment, globals: dict, repo_name, repo_url, cook_fn, v
|
||||
assert ref_fn
|
||||
git_ref = ref_fn(env, version)
|
||||
repo = env.GitBranch(repo_name = _repo_name(env), remote_url = _repo_url(env), git_ref = git_ref)
|
||||
return cook_fn(env, repo)
|
||||
|
||||
cook_signature = inspect.signature(cook_fn)
|
||||
kwargs = {}
|
||||
if 'options' in cook_signature.parameters:
|
||||
kwargs['options'] = options
|
||||
|
||||
return cook_fn(env, repo, **kwargs)
|
||||
|
||||
globals['versions'] = _versions
|
||||
globals['dependencies'] = _dependencies
|
||||
|
||||
Reference in New Issue
Block a user