Skip to content

Commit 0602d43

Browse files
authored
Do not use sysconf when on windows (#2199)
- Only import sysconf if not windows.
1 parent 64f42c0 commit 0602d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensilelite/Tensile/Toolchain/Component.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
################################################################################
2525
from os import name as os_name
2626
from os import environ
27-
from os import sysconf
2827
from pathlib import Path
2928
from re import search, IGNORECASE
3029
from shlex import split
@@ -368,7 +367,8 @@ def _use_response_file(self, args: List[str]) -> bool:
368367
On Unix: check against system argument length limit
369368
"""
370369
if os_name == "nt":
371-
return True
370+
return True
371+
from os import sysconf
372372
line_length = sum(len(arg) for arg in args) + len(args) - 1
373373
return line_length >= sysconf("SC_ARG_MAX")
374374

0 commit comments

Comments
 (0)