ccache path depends on system
@@ -83,6 +83,8 @@ class LinuxGenerator:
' '.join(self._additional_packages('apt'))
),
'',
+ 'ENV PATH "/usr/lib/ccache:${PATH}"',
+ '',
]
elif os_name == 'centos':
lines += [
@@ -97,16 +99,12 @@ class LinuxGenerator:
' '.join(self._additional_packages('yum'))
),
'',
+ 'ENV PATH "/usr/lib64/ccache:${PATH}"',
+ '',
]
else:
raise AssertionError
- # Enable ccache for gcc/g++.
- lines += [
- 'ENV PATH "/usr/lib/ccache:${PATH}"',
- '',
- ]
-
# Set environment variables for ROCm.
if matrix.rocm is not None:
lines += [
