Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If compiling against libc++ without filesystem, don't reference fstream
SetupPayloadHelper.cpp is compiled as part of the setup_payload static library, which is built for (almost?) all targets, even if those targets may not have an onboard filesystem. For GCC's libstdc++ this doesn't matter as it still provides a stub for std::ifstream, but LLVM's libc++ doesn't. The alternative to this patch is to split out SetupPayloadHelper.cpp in its own library which is only pulled in by targets with filesystem support.
- Loading branch information