Added enable_hlsl option to glslang.

This commit is contained in:
2024-09-16 09:50:36 +02:00
parent c74fbb8798
commit b45fec7561
2 changed files with 18 additions and 2 deletions

View File

@@ -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