Skip to content

Commit a71853c

Browse files
author
Nat!
committed
add universe.config.skip_consistency_check for mulle-objc-list only
1 parent 846f574 commit a71853c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/mulle-objc-load.c

+10
Original file line numberDiff line numberDiff line change
@@ -1350,6 +1350,16 @@ void mulle_objc_universe_assert_loadinfo( struct _mulle_objc_universe *univer
13501350
MULLE_OBJC_RUNTIME_LOAD_VERSION);
13511351
}
13521352

1353+
//
1354+
// this is used by mulle-objc-list which just want the info "stream" by
1355+
// and doesn't care about tps/fcs/tao consistency, as it never makes actual
1356+
// objective-C calls. but LOAD_VERSION must match. This is like the only
1357+
// imaginable valid reason to use this flag... Otherwise you're just digging
1358+
// yourself into a deeper hole
1359+
//
1360+
if( universe->config.skip_consistency_checks)
1361+
return;
1362+
13531363
if( info->version.foundation)
13541364
{
13551365
if( ! universe->foundation.universefriend.versionassert)

src/mulle-objc-universe-struct.h

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ struct _mulle_objc_universeconfig
7676
unsigned no_classcuster_coverage : 1; // don't assume coverage of all direct classcluster subclasses
7777
unsigned pedantic_exit : 1; // useful for leak checks
7878
unsigned wait_threads_on_exit : 1; // useful for tests
79+
unsigned skip_consistency_checks : 1; // used by mulle-objc-list (and mulle-objc-list only)
7980
int cache_fillrate; // default is (0) can be 0-90
8081
};
8182

0 commit comments

Comments
 (0)