Skip to content

Commit

Permalink
Windows without readline
Browse files Browse the repository at this point in the history
  • Loading branch information
mindreframer committed Oct 14, 2021
1 parent 76e01a0 commit 6fed040
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion bin/compile-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ gcc \
-DENABLE_SOUNDEX=1 \
-DENABLE_STAT4=1 \
-DENABLE_UPDATE_DELETE_LIMIT=1 \
-DHAVE_READLINE=1 \
-DSQLITE_DQS=0 \
-DSQLITE_ENABLE_DBPAGE_VTAB=1 \
-DSQLITE_ENABLE_DBSTAT_VTAB=1 \
Expand Down
7 changes: 6 additions & 1 deletion gen/genBins.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const fs = require("fs");
const { GenBase } = require("./genbase");
let difference = (arr1, arr2) => {
return arr1.filter((x) => !arr2.includes(x));
};
const flags = [
"DALLOW_COVERING_INDEX_SCAN=1",
"DENABLE_FTS3_PARENTHESIS=1",
Expand Down Expand Up @@ -32,6 +35,8 @@ const flags = [
"DSQLITE_USE_URI=1",
];

const winFlags = difference(flags, ["DHAVE_READLINE=1"]);

class Generator extends GenBase {
run() {
this.genLinux();
Expand Down Expand Up @@ -101,7 +106,7 @@ class Generator extends GenBase {
this.push("mkdir dist");
this.push("gcc \\");
this.withIndent(() => {
flags.forEach((flag) => {
winFlags.forEach((flag) => {
this.push(`-${flag} \\`);
});

Expand Down

0 comments on commit 6fed040

Please sign in to comment.