Skip to content

[libc][bazel] Add an option to build linux UAPI headers from source - #216868

Draft
jtstogel wants to merge 1 commit into
users/jtstogel/full-build/linux-uapi-envfrom
users/jtstogel/full-build/linux-uapi-hermetic
Draft

[libc][bazel] Add an option to build linux UAPI headers from source#216868
jtstogel wants to merge 1 commit into
users/jtstogel/full-build/linux-uapi-envfrom
users/jtstogel/full-build/linux-uapi-hermetic

Conversation

@jtstogel

Copy link
Copy Markdown
Contributor

This PR defines a fallback method for computing @linux_api//:linux_uapi_headers. If the user does not specify LINUX_UAPI_INCLUDE_DIR, then the target will be configured to pull from https://github.com/torvalds/linux and build the linux UAPI headers from source. On my machine, the download takes ~7s and the build takes ~1s. If LINUX_UAPI_INCLUDE_DIR is specified, then the download from github will never be triggered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant