Skip to content

Commit b1a9121

Browse files
committed
BUG: fix macOS SDK version detection
1 parent 9d0fc2f commit b1a9121

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonbuild/dependencies/blas_lapack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def __init__(self, name: str, environment: 'Environment', kwargs: T.Dict[str, T.
526526

527527
def check_macOS_recent_enough(self) -> bool:
528528
cmd = ['xcrun', '-sdk', 'macosx', '--show-sdk-version']
529-
sdk_version = str(subprocess.run(cmd, capture_output=True, check=True).stdout)
529+
sdk_version = subprocess.run(cmd, capture_output=True, check=True, text=True).stdout.strip()
530530
return sdk_version >= '13.3'
531531

532532
def detect(self, kwargs: T.Dict[str, T.Any]) -> None:

0 commit comments

Comments
 (0)