[SERVER-28878] Dependency from scripting library to mozjs library should be private Created: 20/Apr/17  Updated: 30/Oct/23  Resolved: 20/Apr/17

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: None
Fix Version/s: 3.5.7

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-05-08
Participants:

 Description   

The scripting library completely abstracts away the details of the underlying JS runtime. Clients depending on the scripting library do not themselves depend on the library implementing the JS runtime, currently MozJS. However, during a dynamic link, the library dependency graph expansion causes the JS runtime library to be spammed onto the link line for all targets that link the scripting library, even though none of them need to see it. Only the scripting library needs to list the JS runtime on its link line.

We have newly added a mechanism to express this situation in SERVER-27505; use it here to ensure that the large JS runtime library is only placed on the link line when truly required.



 Comments   
Comment by Githook User [ 20/Apr/17 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-28878 Mark mozjs shim as a private dependency edge
Branch: master
https://github.com/mongodb/mongo/commit/96ab10faa3738ab9c374621f57719167767c5f10

Generated at Thu Feb 08 04:19:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.