Download patches/rules_foreign_cc_make_cppflags.patch from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 767 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_foreign_cc_make_cppflags.patch
- Command line
-
hf download hf://SaylorTwift/codex/patches/rules_foreign_cc_make_cppflags.patch
-
curl -L -o rules_foreign_cc_make_cppflags.patch https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_foreign_cc_make_cppflags.patch
767 Bytes
| diff --git a/foreign_cc/built_tools/make_build.bzl b/foreign_cc/built_tools/make_build.bzl | |
| --- a/foreign_cc/built_tools/make_build.bzl | |
| +++ b/foreign_cc/built_tools/make_build.bzl | |
| "ARFLAGS": _join_flags_list(ctx.workspace_name, arflags), | |
| "CC": absolute_cc, | |
| "CFLAGS": _join_flags_list(ctx.workspace_name, non_sysroot_cflags), | |
| + # Configure's preprocessor checks need the declared header paths too. | |
| + "CPPFLAGS": " ".join([ | |
| + "$${CPPFLAGS:-}$$", | |
| + _join_flags_list(ctx.workspace_name, non_sysroot_cflags), | |
| + ]).strip(), | |
| "LD": absolute_ld, | |
| "LDFLAGS": _join_flags_list(ctx.workspace_name, non_sysroot_ldflags), | |
| }) | |