Reland "Add modulemap compatibility for ChromeOS by ensuring that linux-specific headers are textual."

This reverts commit bb3e1e7ccc1ce2daa20db6a7ea4e0162898aebe6.

Reason for revert: Fixed cause of failure in crrev.com/c/6975305

Original change's description:
> Revert "Add modulemap compatibility for ChromeOS by ensuring that linux-specific headers are textual."
>
> This reverts commit 4f51c7a40be78bb615ae33d5872cb14be09f39d5.
>
> Reason for revert:
> LUCI Bisection has identified this change as the culprit of a build failure. See the analysis: https://ci.chromium.org/ui/p/chromium/bisection/compile-analysis/b/8704055731680973905
>
> Sample failed build: https://ci.chromium.org/b/8704055731680973905
>
> If this is a false positive, please report it at http://b.corp.google.com/createIssue?component=1199205&description=Analysis%3A+https%3A%2F%2Fchromium-review.googlesource.com%2Fc%2Fchromium%2Fsrc%2F%2B%2F6910803&format=PLAIN&priority=P3&title=Wrongly+blamed+https%3A%2F%2Fci.chromium.org%2Fui%2Fp%2Fchromium%2Fbisection%2Fcompile-analysis%2Fb%2F8704055731680973905&type=BUG
>
> Original change's description:
> > Add modulemap compatibility for ChromeOS by ensuring that linux-specific headers are textual.
> >
> > Bug: 442479236
> > Change-Id: I6a6a69648f0e14ab0c0270b6f1163d81b3be3b8b
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6910803
> > Commit-Queue: Matt Stark <msta@google.com>
> > Auto-Submit: Matt Stark <msta@google.com>
> > Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#1514072}
> >
>
> Bug: 442479236
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Change-Id: Ida812b3a66ff7bd50284d3e8769467981e26e38b
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6937702
> Commit-Queue: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
> Owners-Override: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
> Bot-Commit: luci-bisection@appspot.gserviceaccount.com <luci-bisection@appspot.gserviceaccount.com>
> Cr-Commit-Position: refs/heads/main@{#1514081}

Bug: 442479236
Change-Id: I97a4c0db204aea5b30c0d71c52b59a4a8022386d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6952912
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Matt Stark <msta@google.com>
Cr-Commit-Position: refs/heads/main@{#1522600}
NOKEYCHECK=True
GitOrigin-RevId: 37f20055ee8f9e882b10a6e347a8161a49efd641
9 files changed
tree: 2ab78b76242b0840c980858d9ed1a729865ba402
  1. 3pp_common/
  2. android/
  3. apple/
  4. args/
  5. autoroll/
  6. chromeos/
  7. cipd/
  8. config/
  9. docs/
  10. fuchsia/
  11. gn_ast/
  12. internal/
  13. ios/
  14. linux/
  15. mac/
  16. mcp_servers/
  17. modules/
  18. private_code_test/
  19. rust/
  20. sanitizers/
  21. skia_gold_common/
  22. toolchain/
  23. util/
  24. win/
  25. .clang-tidy
  26. .clangd
  27. .git-blame-ignore-revs
  28. .gitignore
  29. .style.yapf
  30. action_helpers.py
  31. action_helpers_unittest.py
  32. add_rts_filters.py
  33. build-ctags.sh
  34. BUILD.gn
  35. build_config.h
  36. buildflag.h
  37. buildflag_header.gni
  38. check_gn_headers.py
  39. check_gn_headers_allowlist.txt
  40. check_gn_headers_unittest.py
  41. check_return_value.py
  42. ciopfs.sha1
  43. clobber.py
  44. clobber_unittest.py
  45. compiled_action.gni
  46. compute_build_timestamp.py
  47. copy_test_data_ios.py
  48. cp.py
  49. DEPS
  50. detect_host_arch.py
  51. DIR_METADATA
  52. dotfile_settings.gni
  53. env_dump.py
  54. extract_from_cab.py
  55. extract_partition.py
  56. find_depot_tools.py
  57. fix_gn_headers.py
  58. gdb-add-index
  59. get_landmines.py
  60. get_symlink_targets.py
  61. gn_editor
  62. gn_helpers.py
  63. gn_helpers_unittest.py
  64. gn_logs.gni
  65. gn_run_binary.py
  66. install-build-deps.py
  67. install-build-deps.sh
  68. install-chroot.sh
  69. landmine_utils.py
  70. landmines.py
  71. locale_tool.py
  72. mac_toolchain.py
  73. metadata.json.in
  74. nocompile.gni
  75. noop.py
  76. OWNERS
  77. OWNERS.setnoparent
  78. OWNERS.status
  79. partitioned_shared_library.gni
  80. precompile.cc
  81. precompile.h
  82. PRESUBMIT.py
  83. PRESUBMIT_test.py
  84. print_python_deps.py
  85. protoc_java.py
  86. protoc_java.pydeps
  87. README.md
  88. redirect_stdout.py
  89. rm.py
  90. sample_arg_file.gn
  91. sanitize-mac-build-log.sed
  92. sanitize-mac-build-log.sh
  93. sanitize-win-build-log.sed
  94. sanitize-win-build-log.sh
  95. shim_headers.gni
  96. symlink.gni
  97. symlink.py
  98. timestamp.gni
  99. tree_truth.sh
  100. update-linux-sandbox.sh
  101. vs_toolchain.py
  102. whitespace_file.txt
  103. write_buildflag_header.py
  104. xcode_binaries.yaml
  105. zip_helpers.py
  106. zip_helpers_unittest.py
README.md

About

//build contains:

  • Core GN templates and configuration
  • Core Python build scripts

Since this directory is DEPS'ed in by some other repositories (webrtc, pdfium, v8, etc), it should be kept as self-contained as possible by not referring to files outside of it. Some exceptions exist (//testing, select //third_party subdirectories), but new dependencies tend to break these other projects, and so should be avoided.

Changes to //build should be landed in the Chromium repo. They will then be replicated to the stand-alone build repo by the gsubtreed tool. Note: You can find all directories already available through gsubtreed in the list of all chromium repos.

Contents

  • //build/config - Common templates via .gni files.
  • //build/toolchain - GN toolchain definitions.
  • Other .py files - Some are used by GN/Ninja. Some by gclient hooks, some are just random utilities.

Files referenced by //.gn:

  • //build/BUILDCONFIG.gn - Included by all BUILD.gn files.
  • //build/secondary - An overlay for BUILD.gn files. Enables adding BUILD.gn to directories that live in sub-repositories.
  • //build_overrides - Refer to //build_overrides/README.md.

Docs