summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-03-14 16:09:26 +0100
committerCarl Hetherington <cth@carlh.net>2025-03-16 20:09:41 +0100
commit7f1a89fce5c87c5328c53d031f24dc979caf56ab (patch)
treedb8023bdcfe85ea2087906c5026884b867a584f1 /cscript
parent6daa16d2893d0c0d9cd8433f3a03f76c76f031de (diff)
Build with C++17 also on Debian Unstable.v1.10.15
Diffstat (limited to 'cscript')
-rw-r--r--cscript7
1 files changed, 5 insertions, 2 deletions
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: