We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f42c0 commit 0602d43Copy full SHA for 0602d43
tensilelite/Tensile/Toolchain/Component.py
@@ -24,7 +24,6 @@
24
################################################################################
25
from os import name as os_name
26
from os import environ
27
-from os import sysconf
28
from pathlib import Path
29
from re import search, IGNORECASE
30
from shlex import split
@@ -368,7 +367,8 @@ def _use_response_file(self, args: List[str]) -> bool:
368
367
On Unix: check against system argument length limit
369
"""
370
if os_name == "nt":
371
- return True
+ return True
+ from os import sysconf
372
line_length = sum(len(arg) for arg in args) + len(args) - 1
373
return line_length >= sysconf("SC_ARG_MAX")
374
0 commit comments