File tree Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Expand file tree Collapse file tree 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 168
168
"moduleInfo" : {
169
169
"name" : "com.oracle.truffle.regex.test.dummylang" ,
170
170
"requires" : [
171
+ "org.graalvm.polyglot" ,
171
172
"org.graalvm.truffle" ,
172
173
],
173
174
},
174
175
"subDir" : "src" ,
175
176
"dependencies" : ["com.oracle.truffle.regex.test.dummylang" ],
176
177
"distDependencies" : [
177
- "regex:TREGEX"
178
- ],
179
- "exclude" : [
178
+ "regex:TREGEX" ,
180
179
],
181
180
"description" : "Truffle regular expressions testing dummy language." ,
182
181
"allowsJavadocWarnings" : True ,
Original file line number Diff line number Diff line change 39
39
# SOFTWARE.
40
40
#
41
41
import os
42
+ import re
42
43
import shutil
43
44
import stat
44
45
import tempfile
@@ -326,11 +327,14 @@ def build(self):
326
327
mx .warn ("No WABT_DIR specified." )
327
328
mx .abort ("Could not check the wat2wasm version." )
328
329
329
- wat2wasm_version = str (out .data ).split ("." )
330
- major = int (wat2wasm_version [0 ])
331
- build = int (wat2wasm_version [2 ])
332
- if major <= 1 and build <= 24 :
333
- bulk_memory_option = "--enable-bulk-memory"
330
+ try :
331
+ wat2wasm_version = re .match (r'^(\d+)\.(\d+)(?:\.(\d+))?' , str (out .data )).groups ()
332
+
333
+ major , minor , build = wat2wasm_version
334
+ if int (major ) == 1 and int (minor ) == 0 and int (build ) <= 24 :
335
+ bulk_memory_option = "--enable-bulk-memory"
336
+ except :
337
+ mx .warn (f"Could not parse wat2wasm version. Output: '{ out .data } '" )
334
338
335
339
mx .log ("Building files from the source dir: " + source_dir )
336
340
for root , filename in self .subject .getProgramSources ():
Original file line number Diff line number Diff line change 94
94
"annotationProcessors" : ["truffle:TRUFFLE_DSL_PROCESSOR" ],
95
95
"workingSets" : "WebAssembly" ,
96
96
"license" : "UPL" ,
97
- "javac.lint.overrides" : "-incubating" ,
98
97
},
99
98
100
99
"org.graalvm.wasm.jdk25" : {
109
108
"overlayTarget" : "org.graalvm.wasm" ,
110
109
"multiReleaseJarVersion" : "25" ,
111
110
"checkstyle" : "org.graalvm.wasm" ,
112
- "javaCompliance" : "21+" ,
111
+ "javaCompliance" : "25+" ,
112
+ "forceJavac" : True ,
113
113
"workingSets" : "WebAssembly" ,
114
114
"license" : "UPL" ,
115
115
"javac.lint.overrides" : "-incubating" ,
116
+ "spotbugs" : "false" ,
116
117
},
117
118
118
119
"org.graalvm.wasm.launcher" : {
381
382
],
382
383
"exclude" : [
383
384
"mx:JUNIT" ,
385
+ "mx:HAMCREST" ,
384
386
],
385
387
"distDependencies" : [
386
388
"truffle:TRUFFLE_API" ,
427
429
"name" : "org.graalvm.wasm.benchmark" ,
428
430
"requires" : [
429
431
"java.compiler" ,
432
+ "org.graalvm.polyglot" ,
430
433
],
431
434
},
432
435
"subDir" : "src" ,
You can’t perform that action at this time.
0 commit comments