-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workspace] Bump VGT to support hidden visibility (#20387)
- Loading branch information
1 parent
33a0da3
commit 6035a45
Showing
3 changed files
with
21 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
13 changes: 13 additions & 0 deletions
13
tools/workspace/voxelized_geometry_tools/patches/vendor.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[vgt] Use hidden linker visibility | ||
|
||
This prevents ODR violations in case downstream code also links to VGT. | ||
|
||
--- include/voxelized_geometry_tools/vgt_namespace.hpp | ||
+++ include/voxelized_geometry_tools/vgt_namespace.hpp | ||
@@ -17,5 +17,5 @@ | ||
|
||
#ifndef VGT_NAMESPACE_BEGIN | ||
-# define VGT_NAMESPACE_BEGIN inline namespace v1 { | ||
+# define VGT_NAMESPACE_BEGIN inline namespace drake_vendor __attribute__ ((visibility ("hidden"))) { | ||
#endif | ||
|
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