Download patches/rules_foreign_cc_make_msvc_stdint.patch from SaylorTwift/codex: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_foreign_cc_make_msvc_stdint.patch
- Command line
-
hf download hf://SaylorTwift/codex/patches/rules_foreign_cc_make_msvc_stdint.patch
-
curl -L -o rules_foreign_cc_make_msvc_stdint.patch https://huggingface.co/SaylorTwift/codex/resolve/main/patches/rules_foreign_cc_make_msvc_stdint.patch
571 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 | |
| build_str += " gcc" | |
| dist_dir = "GccRel" | |
| else: | |
| + # Modern MSVC provides stdint.h, including the intmax_t types that | |
| + # Make's legacy Windows config otherwise replaces with macros. | |
| + build_str = 'export CL="$${CL:-}$$ /DHAVE_STDINT_H=1"\n' + build_str | |
| dist_dir = "WinRel" | |
| script = [ | |