From fa22956a8616c34482b10bb3ae1aed76ad017c3e Mon Sep 17 00:00:00 2001 From: Luke Channings <461449+LukeChannings@users.noreply.github.com> Date: Sat, 15 Oct 2022 16:21:04 +0100 Subject: refactor(build): better handle old glibc (#16238) Follow-up to #16208. - Refactors build.rs behaviour to use `-exported_symbols_list` / `--export-dynamic-symbol-list` - Since all build systems now rely on a symbols list file, I have added `generate_exported_symbols_list`, which derives the symbol list file depending on the platform, which makes `tools/napi/generate_link_win.js` redundant. - Fixes a missed instance of `i8` being used instead of `c_char` Co-authored-by: Divy Srivastava --- test_napi/src/object_wrap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test_napi/src') diff --git a/test_napi/src/object_wrap.rs b/test_napi/src/object_wrap.rs index a38f97c9c..40189e01c 100644 --- a/test_napi/src/object_wrap.rs +++ b/test_napi/src/object_wrap.rs @@ -130,7 +130,7 @@ pub fn init(env: napi_env, exports: napi_value) { unsafe { napi_define_class( env, - "NapiObject\0".as_ptr() as *mut i8, + "NapiObject\0".as_ptr() as *mut c_char, usize::MAX, Some(NapiObject::new), ptr::null_mut(), -- cgit v1.2.3