diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-03-04 13:42:12 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-03-20 08:19:51 +1000 |
commit | d6078771a56b1f38f420d302e1530efcc1b45590 (patch) | |
tree | b519ff62d7c13eea8c798602f9cfe23069a74929 /auto.def | |
parent | 55d169005f184591a6eb4a57af3608ebae94e317 (diff) | |
download | jimtcl-d6078771a56b1f38f420d302e1530efcc1b45590.zip jimtcl-d6078771a56b1f38f420d302e1530efcc1b45590.tar.gz jimtcl-d6078771a56b1f38f420d302e1530efcc1b45590.tar.bz2 |
Add support for ./configure --disable-introspection
Sometimes it can be useful to provide an embedded interpreter
where introspection is not permitted.
This includes:
- info commands, procs, channels: only allow exact match, not glob pattern
- info frame: don't include cmd and proc in the returned dict
- info level: only return the command name, not the command arguments
- info body, args, statics: do not allow these to be called
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r-- | auto.def | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -35,6 +35,7 @@ options { docdir:path => "Path to install docs (if built)" random-hash => "Randomise hash tables. more secure but hash table results are not predicable" coverage => "Build with code coverage support" + introspection=1 => "Disable introspection" with-jim-ext: {with-ext:"ext1,ext2,..."} => { Specify additional Jim extensions to include. Use --extinfo to show information about available extensions. @@ -475,6 +476,10 @@ if {[opt-bool compat]} { msg-result "Enabling compatibility mode" define JIM_COMPAT } +if {![opt-bool introspection]} { + msg-result "Disabling introspection" + define JIM_NO_INTROSPECTION +} if {[opt-bool shared with-jim-shared]} { msg-result "Building shared library" } else { |