Skip to content

Commit 5ee9bf5

Browse files
committed
update-api-list: Match subdirectories within arch
1 parent 1b5c768 commit 5ee9bf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

etc/update-api-list.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ def _init_defs(self, index: IndexTy) -> None:
123123

124124
# A lot of the `arch` module is often configured out so doesn't show up in docs. Use
125125
# string matching as a fallback.
126-
for fname in glob("libm/src/math/arch/**.rs", root_dir=ROOT_DIR):
126+
for fname in glob(
127+
"libm/src/math/arch/**/*.rs", root_dir=ROOT_DIR, recursive=True
128+
):
129+
print(fname)
127130
contents = (ROOT_DIR.joinpath(fname)).read_text()
128131

129132
for name in self.public_functions:

0 commit comments

Comments
 (0)