Skip to content

Commit

Permalink
build: regexp - enable on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Feb 3, 2023
1 parent 04f480a commit 8a0c9a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021 Anton Zhiyanov, MIT License
# Copyright (c) 2021 Anton Zhiyanov, MIT License
# https://github.com/nalgeon/sqlean

.PHONY: test
Expand Down Expand Up @@ -41,8 +41,7 @@ compile-windows:
gcc -shared -I. src/sqlite3-fuzzy.c src/fuzzy/*.c -o dist/fuzzy.dll
gcc -shared -I. src/sqlite3-json1.c -o dist/json1.dll
gcc -shared -I. src/sqlite3-math.c -o dist/math.dll -lm
gcc -shared -I. src/sqlite3-re.c src/re.c -o dist/re.dll
# gcc -shared -DPCRE2_CODE_UNIT_WIDTH=8 -DLINK_SIZE=2 -DHAVE_CONFIG_H -I. src/sqlite3-regexp.c src/regexp/regexp.c src/regexp/pcre2/*.c -o dist/regexp.dll
gcc -shared -DPCRE2_CODE_UNIT_WIDTH=8 -DLINK_SIZE=2 -DHAVE_CONFIG_H -DPCRE2_STATIC -I. src/sqlite3-regexp.c src/regexp/regexp.c src/regexp/pcre2/*.c -o dist/regexp.dll
gcc -shared -I. src/sqlite3-stats.c -o dist/stats.dll -lm
gcc -shared -I. src/sqlite3-text.c -o dist/text.dll
gcc -shared -I. src/sqlite3-unicode.c -o dist/unicode.dll
Expand Down
2 changes: 1 addition & 1 deletion docs/re.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# re: Regular expressions in SQLite

**⛔️ This extension is deprecated on Linux and macOS. Use [regexp](regexp.md) instead.**
**⛔️ This extension is deprecated. Use [regexp](regexp.md) instead.**

Regexp search and replace functions.
Adapted from [regexp.old](https://github.com/garyhouston/regexp.old) by Henry Spencer.
Expand Down
2 changes: 0 additions & 2 deletions docs/regexp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Regexp search and replace functions. Based on the [PCRE2](https://github.com/pcre2project/pcre2) engine, this extension supports all major regular expression features (see the section on syntax below).

⚠️ This extension is not available on Windows. Use [re](re.md) instead.

Provides the following functions:

### `REGEXP` statement
Expand Down

0 comments on commit 8a0c9a1

Please sign in to comment.