Skip to content

Commit 5510cc0

Browse files
committed
Also use symbolic for globals
1 parent 4c0585f commit 5510cc0

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

sqlite3/hook/build.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,10 @@ ${usedSqliteSymbols.map((symbol) => ' $symbol;').join('\n')}
7676
sources: [sourceFile],
7777
includes: [p.dirname(sourceFile)],
7878
defines: defines,
79-
buildMode: BuildMode.debug,
80-
optimizationLevel: OptimizationLevel.o1,
8179
flags: [
8280
if (input.config.code.targetOS == OS.linux) ...[
8381
// This avoids loading issues on Linux, see comment above.
84-
'-Wl,-Bsymbolic-functions',
82+
'-Wl,-Bsymbolic',
8583
// And since we already have a designated list of symbols to
8684
// export, we might as well strip the rest.
8785
// TODO: Port this to other targets too.

sqlite3/tool/generate_bindings.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,7 @@ const usedSqliteSymbols = {
169169
final library = ffigen.parse(
170170
Config(
171171
output: Uri.parse('unused'),
172-
entryPoints: [
173-
Uri.parse('assets/sqlite3.h'),
174-
Uri.parse('assets/sqlite3_dart_wasm.h'),
175-
],
172+
entryPoints: [Uri.parse('assets/sqlite3.h')],
176173
functionDecl: _includeSqlite3Only,
177174
globals: _includeSqlite3Only,
178175
),

0 commit comments

Comments
 (0)