Skip to content

Commit

Permalink
chore: Reuse linux symbols list on openbsd and freebsd (#22706)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy authored Mar 6, 2024
1 parent bebbb61 commit adb0226
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ fn main() {
}

let symbols_file_name = match env::consts::OS {
"android" => "generated_symbol_exports_list_linux.def".to_string(),
"android" | "freebsd" | "openbsd" => {
"generated_symbol_exports_list_linux.def".to_string()
}
os => format!("generated_symbol_exports_list_{}.def", os),
};
let symbols_path = std::path::Path::new("napi")
Expand Down
2 changes: 0 additions & 2 deletions tools/napi/generate_symbols_lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import exports from "../../cli/napi/sym/symbol_exports.json" assert {

const symbolExportLists = {
linux: `{ ${exports.symbols.map((s) => `"${s}"`).join("; ")}; };`,
openbsd: `{ ${exports.symbols.map((s) => `"${s}"`).join("; ")}; };`,
freebsd: `{ ${exports.symbols.map((s) => `"${s}"`).join("; ")}; };`,
windows: `LIBRARY\nEXPORTS\n${
exports.symbols
.map((symbol) => " " + symbol)
Expand Down

0 comments on commit adb0226

Please sign in to comment.