diff options
author | Steve Bennett <steveb@workware.net.au> | 2019-11-14 09:40:30 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2019-11-14 09:41:20 +1000 |
commit | c761d15a0a9e44e965445f61f748ef5a123696b4 (patch) | |
tree | bff1b7b98862efa29dfb27bd2e0924b0c5afb574 /auto.def | |
parent | 76ddbec17c6084ab3333e4d5fa177241af1a91bb (diff) | |
download | jimtcl-c761d15a0a9e44e965445f61f748ef5a123696b4.zip jimtcl-c761d15a0a9e44e965445f61f748ef5a123696b4.tar.gz jimtcl-c761d15a0a9e44e965445f61f748ef5a123696b4.tar.bz2 |
build: Fix out-of-tree build with json ext
If building out-of-tree, the jsmn/ directory may not exist.
So create it during configure
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r-- | auto.def | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -468,6 +468,8 @@ if {$jimregexp || [opt-bool jim-regexp]} { foreach mod $extinfo(static-c) { if {[dict exists $extdb info $mod extrasrcs]} { foreach src [dict get $extdb info $mod extrasrcs] { + # In case we are building out-of-tree and $src is in a subdir + file mkdir [file dirname $src] lappend extra_objs {*}[file rootname $src].o } } |