utelle / apsw-sqlite3mc

Another Python SQLite wrapper bundled with SQLite3 Multiple Ciphers
https://utelle.github.io/SQLite3MultipleCiphers
Other
2 stars 0 forks source link

Figure out AES compiler support #4

Closed rogerbinns closed 4 months ago

rogerbinns commented 4 months ago

Using AES hardware requires extra flags to be given to the compiler.

We need to figure out which compiler is in use, and add the appropriate compiler and linker flags.

Windows / msvc needs nothing

Linux clang and gcc need -maes. Probably the same story on other platforms like the BSDs. -msse4.2 is nice to have on x86/x64.

MacOS xcode needs same as Linux.

Termux also provides apsw for Android, and may want to make this work.

rogerbinns commented 4 months ago

I've checked Linux, MacOS, and Windows and all works well now. It should work correctly when compilers are overridden via the various mechanisms available.