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