Commit 2c9f2b3
authored
Add re2 shim for Buck2 OSS builds (pytorch#17664)
This is a follow-up of pytorch#17638
since it's breaking internal.
The tokenizers BUCK file references fbsource//third-party/re2:re2, which
resolves to shim_et//third-party/re2:re2 in OSS builds. This target
didn't exist, causing Buck2 build failures.
Add a shim cxx_library in shim_et/third-party/re2/ that re-exports from
the actual re2 build in extension/llm/tokenizers/third-party. The shim
is gated behind runtime.is_oss so it's a no-op internally.
This PR was authored with the help of Claude.1 parent c54feac commit 2c9f2b3
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments