Fork me on GitHub
#planck
<
2016-06-28
>
johanatan02:06:13

@mfikes: hmm, can't seem to find any way to build WebKit for only C. There's --minimal and --webkit-only flags...

johanatan07:06:28

@mfikes: so, I obtained a debug JavaScriptCore.framework via the command: /Tools/Scripts/build-webkit --debug --cmakeargs="-DSHARED_CORE=ON". However, trying to specify it for our program is proving difficult.

johanatan07:06:22

I've tried: 1) add the parent of JavaScriptCore.framework via -F (i.e., .../webkit/WebKitBuild/Debug) and then -framework JavaScriptCore. But this just picked up the release version installed in /Library/Frameworks. 2) Variation of above but using -L and -l instead of -F and -framework (stupid I know but someone on the internet suggested it so I tried it :)) 3) Variation of #1 but with JavaScriptCore.framework renamed to JavaScriptCoreDebug.framework and -framework JavaScriptCoreDebug. <-- this seems most promising as /Library/Frameworks is locked down-- no modifications or additions even as sudo. However, this failed-- it just couldn't find it at all.

johanatan07:06:42

I'm thinking that a 'deep rename' must be performed for this to work (and not merely a superficial 'folder rename').

johanatan07:06:12

[I think the .framework approach is vastly superior to my previous libtool-combined object file approach (as there were duplicate symbols forcing me to (hopefully intelligently but still likely not infallibly) choose the best candidates from a number of conflicting .o files].

johanatan07:06:17

[Oh, and I couldn't just specify all of the separate .o files in the linker flags as that caused the maximum shell command length to be exceeded].

mfikes12:06:50

No ideas… I’ve never tried to debug JavaScriptCore itself before. Any time it has previously crashed (extremely rare), I recall seeing stack traces in Xcode.

johanatan16:06:30

@mfikes: Ok, well I just mailed the webkit-dev mailing list. Hopefully they will respond.