File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -542,6 +542,8 @@ pub struct TargetCfg {
542542 endian : Endian ,
543543 #[ serde( rename = "panic-strategy" , default ) ]
544544 pub ( crate ) panic : PanicStrategy ,
545+ #[ serde( default ) ]
546+ pub ( crate ) dynamic_linking : bool ,
545547}
546548
547549impl TargetCfg {
Original file line number Diff line number Diff line change @@ -1810,8 +1810,8 @@ impl<'test> TestCx<'test> {
18101810 || self . config . target . contains ( "wasm32" )
18111811 || self . config . target . contains ( "nvptx" )
18121812 || self . is_vxworks_pure_static ( )
1813- || self . config . target . contains ( "sgx" )
18141813 || self . config . target . contains ( "bpf" )
1814+ || !self . config . target_cfg ( ) . dynamic_linking
18151815 {
18161816 // We primarily compile all auxiliary libraries as dynamic libraries
18171817 // to avoid code size bloat and large binaries as much as possible
You can’t perform that action at this time.
0 commit comments