From 7f1a89fce5c87c5328c53d031f24dc979caf56ab Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 14 Mar 2025 16:09:26 +0100 Subject: Build with C++17 also on Debian Unstable. --- cscript | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cscript') diff --git a/cscript b/cscript index 0d9fb622..38282c06 100644 --- a/cscript +++ b/cscript @@ -34,9 +34,12 @@ import os import shutil +def build_with_cpp17(target): + return target.platform.startswith('osx') or (target.platform == 'linux' and target.distro == 'debian' and target.version == 'unstable') + def dependencies(target, options): deps = [ - ('libcxml', 'v0.17.13', { 'c++17': target.platform.startswith('osx') }), + ('libcxml', 'v0.17.13', { 'c++17': build_with_cpp17(target) }), ('openjpeg', 'ad8edaacd54a862940d0a77c41ecda5858b54d6e'), ('asdcplib', 'v1.0.5') ] @@ -64,7 +67,7 @@ def build(target, options): elif target.platform == 'windows': cmd += f' --target-windows-{target.bits}' - if ('c++17' in options and options['c++17']) or target.platform.startswith('osx'): + if ('c++17' in options and options['c++17']) or build_with_cpp17(target): cmd += ' --c++17' if target.debug: -- cgit v1.2.3