2025-10-13 16:10:38 +02:00
|
|
|
---
|
|
|
|
|
SConstruct | 8 ++++++--
|
|
|
|
|
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
|
|
2019-02-26 04:04:30 +00:00
|
|
|
Index: toluapp-1.0.93/SConstruct
|
|
|
|
|
===================================================================
|
2025-10-13 16:10:38 +02:00
|
|
|
--- toluapp-1.0.93.orig/SConstruct 2025-10-13 16:32:08.143176758 +0200
|
|
|
|
|
+++ toluapp-1.0.93/SConstruct 2025-10-13 16:32:58.631888989 +0200
|
|
|
|
|
@@ -18,7 +18,11 @@
|
2019-02-26 04:04:30 +00:00
|
|
|
else:
|
|
|
|
|
options_file = "posix"
|
|
|
|
|
|
|
|
|
|
-opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
|
|
|
|
|
+try:
|
|
|
|
|
+ opts = Variables(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
|
|
|
|
|
+except NameError:
|
|
|
|
|
+ opts = Options(["config_"+options_file+".py", "custom.py", "custom_"+options_file+".py"], ARGUMENTS)
|
|
|
|
|
+
|
|
|
|
|
opts.Add('CC', 'The C compiler.')
|
|
|
|
|
opts.Add('CXX', 'The C++ compiler (for the tests)')
|
|
|
|
|
opts.Add('CCFLAGS', 'Flags for the compiler.', ['-O2', '-Wall'])
|
2025-10-13 16:10:38 +02:00
|
|
|
@@ -69,7 +73,7 @@
|
|
|
|
|
pkg = open(source, "rt")
|
|
|
|
|
|
|
|
|
|
for linea in pkg:
|
|
|
|
|
- dep = re.search("^[\t\w]*\$[cphl]file\s*\"([^\"]+)\"", linea)
|
|
|
|
|
+ dep = re.search(r"^[\t\w]*\$[cphl]file\s*\"([^\"]+)\"", linea)
|
|
|
|
|
if dep:
|
|
|
|
|
self.Depends(target, '#' + dep.groups()[0]);
|
|
|
|
|
|