speccpu/x264: recompiled mc accept Mapping

This commit is contained in:
2025-04-23 13:36:49 +08:00
parent 075ad5d8c8
commit 9765cccf0f

View File

@@ -1,6 +1,6 @@
import importlib.resources
import os
import shutil
from collections.abc import Mapping
from pathlib import Path
from subprocess import run
@@ -156,7 +156,7 @@ def make(build, spec_env):
return build_exe
def recompile_mc(mc_path: Path, build: Path, spec_env: os._Environ):
def recompile_mc(mc_path: Path, build: Path, spec_env: Mapping[str, str]):
# Recompile mc.o
mc_o_path = mc_path.with_suffix(".o")
if mc_o_path.exists():
@@ -166,6 +166,7 @@ def recompile_mc(mc_path: Path, build: Path, spec_env: os._Environ):
# Run "make"
return make(build, spec_env)
specinvoke_args = {
"ref": [
"--seek",