-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
sqlite: add build option to build without sqlite #58122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -54,6 +54,8 @@ const noop = () => {}; | |||||
const hasCrypto = Boolean(process.versions.openssl) && | ||||||
!process.env.NODE_SKIP_CRYPTO; | ||||||
|
||||||
const hasSQLite = Boolean(process.versions.sqlite); | ||||||
|
||||||
const hasQuic = hasCrypto && !!process.config.variables.node_quic; | ||||||
|
||||||
function parseTestFlags(filename = process.argv[1]) { | ||||||
|
@@ -682,6 +684,12 @@ function skipIf32Bits() { | |||||
} | ||||||
} | ||||||
|
||||||
function skipIfSQLiteMissing() { | ||||||
if (!hasSQLite) { | ||||||
skip('missing SQLite'); | ||||||
} | ||||||
} | ||||||
|
||||||
function getArrayBufferViews(buf) { | ||||||
const { buffer, byteOffset, byteLength } = buf; | ||||||
|
||||||
|
@@ -883,6 +891,7 @@ const common = { | |||||
hasIntl, | ||||||
hasCrypto, | ||||||
hasQuic, | ||||||
hasSQLite, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we move the declaration here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @anonrig can you clarify what you mean on this one? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of having the variable declaration on top of the file, what about:
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That is not consistent with how any of the other ones are done as far as I can see. I was just trying to follow what seems to be existing practice. |
||||||
invalidArgTypeHelper, | ||||||
isAlive, | ||||||
isASan, | ||||||
|
@@ -912,6 +921,7 @@ const common = { | |||||
skipIf32Bits, | ||||||
skipIfEslintMissing, | ||||||
skipIfInspectorDisabled, | ||||||
skipIfSQLiteMissing, | ||||||
spawnPromisified, | ||||||
|
||||||
get enoughTestMem() { | ||||||
|
Uh oh!
There was an error while loading. Please reload this page.