Stasik
Stasik

Reputation: 2614

Can spidermonkey be compiled without math support?

My libm does not have sin and cos functions.

Is there a configuration switch that enables me to compile spidermonkey without the Math.* function of JavaScript?

Regards

Upvotes: 1

Views: 64

Answers (2)

Jeff Johnson
Jeff Johnson

Reputation: 2390

It might be easier to implement sin/cos in a helper file than to remove Math from javascript.

Upvotes: 0

Forhad Ahmed
Forhad Ahmed

Reputation: 1771

Perhaps you can write stub (dummy) functions to avoid the compilation/link errors..

Upvotes: 1

Related Questions