Skip to content

Commit e25e2c3

Browse files
Regenerate JSON file for llvmint every time
1 parent be960e1 commit e25e2c3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tools/generate_intrinsics.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ def extract_instrinsics_from_llvmint(llvmint, intrinsics):
116116
]
117117

118118
json_file = os.path.join(llvmint, "target/doc/llvmint.json")
119-
if not os.path.exists(json_file):
120-
# We need to regenerate the documentation!
121-
run_command(
122-
["cargo", "rustdoc", "--", "-Zunstable-options", "--output-format", "json"],
123-
cwd=llvmint,
124-
)
119+
# We need to regenerate the documentation!
120+
run_command(
121+
["cargo", "rustdoc", "--", "-Zunstable-options", "--output-format", "json"],
122+
cwd=llvmint,
123+
)
125124
with open(json_file, "r", encoding="utf8") as f:
126125
json_data = json.loads(f.read())
127126
for p in json_data["paths"]:

0 commit comments

Comments
 (0)