1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

chore: Reuse linux symbols list on openbsd and freebsd (#22706)

This commit is contained in:
Divy Srivastava 2024-03-06 08:33:15 +05:30 committed by GitHub
parent bebbb61eea
commit adb0226927
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -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")

View file

@ -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)