JavaScriptCore's "Generate Derived Sources" target runs during installhdrs because we set INSTALLHDRS_SCRIPT_PHASE=YES across the project. This was done many years ago to support copying WTF headers using a shell script, which we no longer do. Perhaps we can unset INSTALLHDRS_SCRIPT_PHASE completely?
rdar://90867970