Depend on standard compiler headers by default in bazel

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Zack Winter
            Reporter:
            Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: