[Python-checkins] bpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892)

ambv webhook-mailer at python.org
Tue May 4 09:21:45 EDT 2021


https://github.com/python/cpython/commit/4bb0a815ef2b683af75f43ab20d52eaffe78b436
commit: 4bb0a815ef2b683af75f43ab20d52eaffe78b436
branch: 3.10
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: ambv <lukasz at langa.pl>
date: 2021-05-04T15:21:40+02:00
summary:

bpo-42686: Enable SQLite math functions in Windows build (GH-24053) (#25892)

(cherry picked from commit b451bc8d7e5e5a1df46fbecb6cf50af942cc401e)

Co-authored-by: Erlend Egeberg Aasland <erlend.aasland at innova.no>

files:
A Misc/NEWS.d/next/Windows/2021-01-01-21-21-03.bpo-42686.G_f-TC.rst
M PCbuild/sqlite3.vcxproj

diff --git a/Misc/NEWS.d/next/Windows/2021-01-01-21-21-03.bpo-42686.G_f-TC.rst b/Misc/NEWS.d/next/Windows/2021-01-01-21-21-03.bpo-42686.G_f-TC.rst
new file mode 100644
index 00000000000000..2fcf6e946ec838
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2021-01-01-21-21-03.bpo-42686.G_f-TC.rst
@@ -0,0 +1 @@
+Build :mod:`sqlite3` with math functions enabled. Patch by Erlend E. Aasland.
diff --git a/PCbuild/sqlite3.vcxproj b/PCbuild/sqlite3.vcxproj
index 39f10c5abd69de..e39e2d9c226ca1 100644
--- a/PCbuild/sqlite3.vcxproj
+++ b/PCbuild/sqlite3.vcxproj
@@ -98,7 +98,7 @@
   <ItemDefinitionGroup>
     <ClCompile>
       <AdditionalIncludeDirectories>$(sqlite3Dir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
-      <PreprocessorDefinitions>SQLITE_ENABLE_JSON1;SQLITE_ENABLE_FTS4;SQLITE_ENABLE_FTS5;SQLITE_ENABLE_RTREE;SQLITE_API=__declspec(dllexport);%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>SQLITE_ENABLE_MATH_FUNCTIONS;SQLITE_ENABLE_JSON1;SQLITE_ENABLE_FTS4;SQLITE_ENABLE_FTS5;SQLITE_ENABLE_RTREE;SQLITE_API=__declspec(dllexport);%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <WarningLevel>Level1</WarningLevel>
     </ClCompile>
     <ResourceCompile>



More information about the Python-checkins mailing list