Skip to content

Commit 4f8bc8a

Browse files
committed
fix(c-api) Do not run build.rs if the scripts/publish.py script is running.
1 parent 52daf9b commit 4f8bc8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/c-api/build.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ fn main() {
7575

7676
/// Check whether we should build the C API headers or set `inline-c` up.
7777
fn running_self() -> bool {
78-
env::var("DOCS_RS").is_err() && env::var("_CBINDGEN_IS_RUNNING").is_err()
78+
env::var("DOCS_RS").is_err()
79+
&& env::var("_CBINDGEN_IS_RUNNING").is_err()
80+
&& env::var("WASMER_PUBLISH_SCRIPT_IS_RUNNING").is_err()
7981
}
8082

8183
/// Build the header files for the `wasm_c_api` API.

0 commit comments

Comments
 (0)