Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix EM_JS macro in the face of recent llvm change
A recent change to llvm (llvm/llvm-project#81539) means that the `used` attribute on data forces the segment to be present in the output file, even if it's not used. The usage here in `em_js.h` was assuming that the data was not incldued in the final output. This change makes the symbol non-static instead of used, which is enough to force clang to keep the data around but not the linker (which is exactly the effect we want).
- Loading branch information