We have a (seemingly harmless) warning that prints when using build-jsc on Linux: $ build-jsc --jsc-only --debug --cmakeargs='-DENABLE_C_LOOP=ON -DENABLE_JIT=OFF -DENABLE_SAMPLING_PROFILER=OFF' Can't exec "xcodebuild": No such file or directory at /home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitdirs.pm line 355. Use of uninitialized value $xcodebuildVersionOutput in pattern match (m//) at /home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitdirs.pm line 356.
A stack trace would help here - line 355 is in a function that shouldn't be called on Linux at all.
Stealing the solution to print a stack trace from https://stackoverflow.com/a/13088008/1120203, I found: Stack Trace: /home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitdirs.pm:1253 in function webkitdirs::xcodeVersion /home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitperl/BuildSubproject.pm:150 in function webkitdirs::XcodeOptions /home/mcatanzaro/Projects/WebKit/Tools/Scripts/build-jsc:33 in function (eval) /home/mcatanzaro/Projects/WebKit/Tools/Scripts/build-jsc:33 in function main::BEGIN /home/mcatanzaro/Projects/WebKit/Tools/Scripts/build-jsc:33 in function (eval) I think we can fix this by just moving the calling code into an XCode-specific path.
Pull request: https://github.com/WebKit/WebKit/pull/16139
Committed 266384@main (1c1ef14f21ca): <https://commits.webkit.org/266384@main> Reviewed commits have been landed. Closing PR #16139 and removing active labels.
<rdar://problem/113035669>