Skip to content

Commit

Permalink
also consider c_stdlib_version on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Apr 11, 2024
1 parent 53d27d3 commit c5bbb4f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .ci_support/build_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ def build_all(recipes_dir, arch):
found_cuda = True
if 'sysroot_linux-64' in text:
found_centos7 = True
cbc = os.path.join(recipes_dir, folder, "conda_build_config.yaml")
if os.path.exists(cbc):
with open(cbc, "r") as f:
text = ''.join(f.readlines())
if platform == 'linux' and ('c_stdlib_version' in text):
config = load(text, Loader=BaseLoader)
if 'c_stdlib_version' in config:
for version in config['c_stdlib_version']:
version = tuple([int(x) for x in version.split('.')])
found_centos7 |= version == (2, 17)

if found_cuda:
print('##vso[task.setvariable variable=NEED_CUDA;isOutput=true]1')
if found_centos7:
Expand Down

0 comments on commit c5bbb4f

Please sign in to comment.