Skip to content

Commit a551c05

Browse files
committed
fmt
1 parent 32e7432 commit a551c05

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

scripts/build.ts

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,19 @@ if (Deno.build.os === "windows") {
8484
"TOP=..\\",
8585
CFLAGS,
8686
);
87-
87+
8888
// Strip the Windows DLL
8989
console.log(`%cStripping ${lib}...`, "color: #888");
9090
try {
9191
// Use link.exe with /SUBSYSTEM:WINDOWS /STRIP options
9292
$("link", `/EDIT`, `/SUBSYSTEM:WINDOWS`, `/STRIP`, `${lib}`);
9393
} catch (e) {
94-
console.log(`%cWarning: Stripping failed, using unstripped library: ${e.message}`, "color: #ff0");
94+
console.log(
95+
`%cWarning: Stripping failed, using unstripped library: ${e.message}`,
96+
"color: #ff0",
97+
);
9598
}
96-
99+
97100
await Deno.copyFile(
98101
new URL(`../sqlite/build/${lib}`, import.meta.url),
99102
new URL(`../build/${libWithArch}`, import.meta.url),
@@ -114,15 +117,18 @@ if (Deno.build.os === "windows") {
114117
"8",
115118
CFLAGS,
116119
);
117-
120+
118121
// Strip the library to remove debug symbols and reduce size
119122
console.log(`%cStripping ${lib}...`, "color: #888");
120123
try {
121124
$("strip", `--strip-unneeded`, `.libs/${lib}`);
122125
} catch (e) {
123-
console.log(`%cWarning: Stripping failed, using unstripped library: ${e.message}`, "color: #ff0");
126+
console.log(
127+
`%cWarning: Stripping failed, using unstripped library: ${e.message}`,
128+
"color: #ff0",
129+
);
124130
}
125-
131+
126132
await Deno.copyFile(
127133
new URL(`../sqlite/build/.libs/${lib}`, import.meta.url),
128134
new URL(`../build/${libWithArch}`, import.meta.url),

0 commit comments

Comments
 (0)