Skip to content

Commit ffa5a08

Browse files
authored
apply default-visibility=hidden to runtime crate (#209)
Helps with #98.
1 parent f340fb5 commit ffa5a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ fn make_runtime(
506506

507507
cmd.env(
508508
"RUSTFLAGS",
509-
"-C relocation-model=pic --cfg pyo3_disable_reference_pool",
509+
"-C relocation-model=pic -Z default-visibility=hidden --cfg pyo3_disable_reference_pool",
510510
)
511511
.env("CARGO_TARGET_DIR", out_dir.join(target))
512512
.env("PYO3_CONFIG_FILE", out_dir.join("pyo3-config.txt"));

0 commit comments

Comments
 (0)