[SERVER-80439] Pass the scons link model command line arg to bazel Created: 25/Aug/23  Updated: 29/Oct/23  Resolved: 26/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Zack Winter Assignee: Zack Winter
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Currently bazel defaults to linking cc_binarys with the model specified in the bazel build rule. We want to allow developers to set the link model in the command line since that's currently supported with scons.

Take the link model command line argument passed to scons and use it to set bazel's https://bazel.build/docs/user-manual#dynamic-mode arg. This should result in the final cc_binary either linking the static libraries or the dynamic libraries depending on the scons cli arg.

See https://jira.mongodb.org/browse/SERVER-79789?focusedCommentId=5658316&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-5658316 for more context



 Comments   
Comment by Githook User [ 28/Aug/23 ]

Author:

{'name': 'Zack Winter', 'email': 'zack.winter@mongodb.com', 'username': 'zackwintermdb'}

Message: SERVER-80439 convert bazel link args to list
Branch: master
https://github.com/mongodb/mongo/commit/336636919b1331be1ad9978c07eeb4c1ab202f36

Comment by Githook User [ 25/Aug/23 ]

Author:

{'name': 'Zack Winter', 'email': 'zack.winter@mongodb.com', 'username': 'zackwintermdb'}

Message: SERVER-80439 Pass the scons link model command line arg to bazel
Branch: master
https://github.com/mongodb/mongo/commit/22ee2f920c0ab4d001bb35cd4084b15eaeab0f81

Generated at Thu Feb 08 06:43:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.