File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ idea = []
3131# Enables compilation of SEED, a symmetric key block cypher mostly used in South Korea, but
3232# otherwise not widely supported.
3333seed = []
34+ # Forces configuring Engine module support.
35+ force-engine = []
3436
3537[workspace ]
3638members = [' testcrate' ]
Original file line number Diff line number Diff line change @@ -185,10 +185,13 @@ impl Build {
185185 }
186186
187187 if target. contains ( "musl" ) || target. contains ( "windows" ) {
188- // This actually fails to compile on musl (it needs linux/version.h
188+ // Engine module fails to compile on musl (it needs linux/version.h
189189 // right now) but we don't actually need this most of the time.
190190 // API of engine.c ld fail in Windows.
191- configure. arg ( "no-engine" ) ;
191+ // Disable engine module unless force-engine feature specified
192+ if !cfg ! ( feature = "force-engine" ) {
193+ configure. arg ( "no-engine" ) ;
194+ }
192195 }
193196
194197 if target. contains ( "musl" ) {
You can’t perform that action at this time.
0 commit comments