[SERVER-80883] Depend on standard compiler headers by default in bazel Created: 07/Sep/23 Updated: 29/Oct/23 Resolved: 11/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Improvement | 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 trying to include most standard headers will result in a bazel error like: this rule is missing dependency declarations for the following files included by 'src/mongo/platform/visibility_test_libcommon.cpp': '.../external/mongo_toolchain/stow/gcc-v4/lib/gcc/aarch64-mongodb-linux/11.3.0/include/stdint.h' '.../external/mongo_toolchain/stow/gcc-v4/lib/gcc/aarch64-mongodb-linux/11.3.0/include-fixed/pthread.h' This is because bazel currently doesn't know that these are common dependencies to all cc complication targets. Update "cxx_builtin_include_directories" in the toolchain to pull in standard libraries by default. |
| Comments |
| Comment by Githook User [ 11/Sep/23 ] |
|
Author: {'name': 'Zack Winter', 'email': 'zack.winter@mongodb.com', 'username': 'zackwintermdb'}Message: |