Fabrice Bellard is an awesome guy. He made a JS engine Quick JS which looks awesome ...
... but doesn't compile on Mac OS Mojave if you have XCode 10 and fails with this error
ld: symbol(s) not found for architecture i386
Here is how to solve the issue and make it compile
1 - Download QuickJS source code
2 - Go to Apple Developer Download
3 - Look for Command Line Tools (macOS 10.13) for Xcode 9.4.1
4 - Download and install it
5 - Run make
and it should work (you may need to make clean
if you tried to build it before)
Have fun and thank you Fabrice !