Skip to content

Commit 55b515e

Browse files
committed
Update static-pie-gen.py
1 parent 6dcd596 commit 55b515e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/static-pie-gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123

124124
# template
125125
template_candidates = [template_path]
126-
if lang_name == "Rust" and "x86_64" in target_name and "short" in template_path and len(memory_bin) <= 4096:
126+
if lang_name == "Rust" and "x86_64" in target_name and "short" in template_path and len(code_raw) <= 4096:
127127
template_candidates.append(template_path.replace("short", "shorter"))
128128

129129
out = None

0 commit comments

Comments
 (0)