I have this error when building to linux:
error: ‘isnan’ was not declared in this scope
Related to:
cocos2d/cocos2d-x#15111
It's already fixed on the most recent github version, so I cloned and specified a custom cocos2d-x source root pointing to the clone:
rapidgame prebuild --src path/to/github-cloned-cocos2d-x
Now the prebuild works.