mirror of
https://github.com/denoland/deno.git
synced 2025-02-12 16:59:32 -05:00
chore: Reuse linux symbols list on openbsd and freebsd (#22706)
This commit is contained in:
parent
48c37cb381
commit
3792472223
2 changed files with 3 additions and 3 deletions
|
@ -384,7 +384,9 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let symbols_file_name = match env::consts::OS {
|
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),
|
os => format!("generated_symbol_exports_list_{}.def", os),
|
||||||
};
|
};
|
||||||
let symbols_path = std::path::Path::new("napi")
|
let symbols_path = std::path::Path::new("napi")
|
||||||
|
|
|
@ -7,8 +7,6 @@ import exports from "../../cli/napi/sym/symbol_exports.json" assert {
|
||||||
|
|
||||||
const symbolExportLists = {
|
const symbolExportLists = {
|
||||||
linux: `{ ${exports.symbols.map((s) => `"${s}"`).join("; ")}; };`,
|
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${
|
windows: `LIBRARY\nEXPORTS\n${
|
||||||
exports.symbols
|
exports.symbols
|
||||||
.map((symbol) => " " + symbol)
|
.map((symbol) => " " + symbol)
|
||||||
|
|
Loading…
Add table
Reference in a new issue