Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make hermesc build script to run in a clean build environment (#39662)
Summary: Pull Request resolved: #39662 Hermesc is built with the build script that is executed by Xcode as a "Run script" build phase. For every build Xcode configures environment based on the build target. The Hermesc build script runs in that environment. **The problem** If we build for iPhone of iPhone Simulator, then the environment is configured for these platforms, but Hermesc must always be built for macosx. **The old solution** Previously we experimentally determined what envvars should be changed for Hermesc build to succeed. But it is not robust, because this may change with new Xcode releases. **The new solution** We clear the entire environment and only define `SDKROOT`. This is equivalent to running Cmake outside of Xcode. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D49639599 fbshipit-source-id: f8d8fccb0e61605b1fef9927dc4a3fdf79e4f212
- Loading branch information