-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plumb preferred_linkage and undefined_symbols for cxx library fixups
Summary: `preferred_linkage = "static"` causes ODR violations when building rust code with advanced_unstable_linking under mode/dev. In order to properly handle this, we need to stop unconditionally passing static preferred_linkage to cxx_library targets in third-party/rust and start passing `undefined_symbols = True` instead. In order to do this, I need to land this in a few parts: 1. This diff to add the new flag plumbing to reindeer. 2. The msdk bump build + regenerate third-party/rust/BUCK with preferred_linkage = static in all required fixups files. 3. Migrate from `preferred_linkage` to `undefined_symbols`. 4. Cleanup (probably can remove `preferred_linkage` if there are no usages after (3)). Reviewed By: dtolnay Differential Revision: D59829306 Privacy Context Container: L1122763 fbshipit-source-id: 161dbbc59c143367350c6791aaaec3277258fb15
- Loading branch information
1 parent
08a8dc6
commit 245f60f
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters