speccpu/x264: recompiled mc accept Mapping
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import importlib.resources
|
import importlib.resources
|
||||||
import os
|
|
||||||
import shutil
|
import shutil
|
||||||
|
from collections.abc import Mapping
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from subprocess import run
|
from subprocess import run
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ def make(build, spec_env):
|
|||||||
return build_exe
|
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
|
# Recompile mc.o
|
||||||
mc_o_path = mc_path.with_suffix(".o")
|
mc_o_path = mc_path.with_suffix(".o")
|
||||||
if mc_o_path.exists():
|
if mc_o_path.exists():
|
||||||
@@ -166,6 +166,7 @@ def recompile_mc(mc_path: Path, build: Path, spec_env: os._Environ):
|
|||||||
# Run "make"
|
# Run "make"
|
||||||
return make(build, spec_env)
|
return make(build, spec_env)
|
||||||
|
|
||||||
|
|
||||||
specinvoke_args = {
|
specinvoke_args = {
|
||||||
"ref": [
|
"ref": [
|
||||||
"--seek",
|
"--seek",
|
||||||
|
|||||||
Reference in New Issue
Block a user