I have also experienced the same before; CC'ing :anba. This seems to be a transcient state between two series of patches, the first of which managed to get onto Fx152 train while the later one didn't. I used <https://github.com/AOSC-Dev/aosc-os-abbs/blob/a2b3abf61f9244342b88a2f1dd19e9fada1825bd/app-web/firefox/autobuild/patches/0005-AOSCOS-Guard-stray-inclusion-of-Simulator-riscv64.h.patch> as a solution which is similar to what Jason proposed.
Bug 2049559 Comment 2 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I have also experienced the same before; CC'ing :anba. This seems to be a transient state between two series of patches, the first of which managed to get onto Fx152 train while the later one didn't. I used <https://github.com/AOSC-Dev/aosc-os-abbs/blob/a2b3abf61f9244342b88a2f1dd19e9fada1825bd/app-web/firefox/autobuild/patches/0005-AOSCOS-Guard-stray-inclusion-of-Simulator-riscv64.h.patch> as a solution which is similar to what Jason proposed.