File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 81
81
; ; Running tests under Graal
82
82
; ;
83
83
; ; We have two main Graal scenarios:
84
- ; ; graal: sci-test - interpret tests via sci over natively compiled rewrite-clj
85
- ; ; graal: native-test - natively compile src and tests and run
84
+ ; ; sci-test - interpret tests via sci over natively compiled rewrite-clj
85
+ ; ; native-test - natively compile src and tests and run
86
86
87
- :graal {:override-deps {org.clojure/clojure {:mvn/version " 1.10.3" }}
88
- :extra-deps {com.github.clj-easy/graal-build-time {:mvn/version " 0.1.0" }}}
89
-
90
- :sci-test {:extra-paths [" target/generated/sci-test/src" ]
87
+ :sci-test {:override-deps {org.clojure/clojure {:mvn/version " 1.10.3" }}
88
+ :extra-paths [" target/generated/sci-test/src" ]
91
89
:extra-deps {lread/sci-test {:git/url " https://github.com/lread/sci-test.git"
92
90
:sha " 9fbac1d8d7ef73a35b03446fdf3844c0872d178e" }}}
93
91
94
- :native-test {:extra-paths [" target/generated/graal" ]}
92
+ :native-test {:override-deps {org.clojure/clojure {:mvn/version " 1.10.3" }}
93
+ :extra-paths [" target/generated/graal" ]}
95
94
96
95
; ; usage -M:sci-test:gen-reflection
97
96
:gen-reflection {:main-opts [" -m" " sci-test.generate-reflection-file" ]}
Original file line number Diff line number Diff line change 84
84
" -J-Dclojure.compiler.direct-linking=true"
85
85
(when graal-reflection-fname
86
86
(str " -H:ReflectionConfigurationFiles=" graal-reflection-fname))
87
+ " --initialize-at-build-time"
87
88
" -H:Log=registerResource:"
88
89
" -H:EnableURLProtocols=http,https,jar"
89
90
" --verbose"
Original file line number Diff line number Diff line change 28
28
test-runner-dir " target/generated/graal" ]
29
29
(graal/clean )
30
30
(generate-test-runner test-runner-dir)
31
- (let [classpath (graal/compute-classpath " test-common:graal: native-test" )]
31
+ (let [classpath (graal/compute-classpath " test-common:native-test" )]
32
32
(graal/aot-compile-sources classpath " clj-graal.test-runner" )
33
33
(graal/run-native-image {:graal-native-image graal-native-image
34
34
:target-exe target-exe
Original file line number Diff line number Diff line change 39
39
(let [graal-native-image (graal/find-graal-native-image )]
40
40
(graal/clean )
41
41
(expose-api-to-sci )
42
- (let [classpath (graal/compute-classpath " graal: sci-test" )]
42
+ (let [classpath (graal/compute-classpath " sci-test" )]
43
43
(graal/aot-compile-sources classpath " sci-test.main" )
44
44
(generate-reflection-file graal-reflection-fname)
45
45
(graal/run-native-image {:graal-native-image graal-native-image
You can’t perform that action at this time.
0 commit comments