mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +08:00
Fallback to non-thread-safe libraries if the thread-safe ones
are unavailable.
This commit is contained in:
@ -53,6 +53,9 @@ if enabled('embedded'):
|
|||||||
elif enabled('threadsafe'):
|
elif enabled('threadsafe'):
|
||||||
libs = mysql_config("libs_r")
|
libs = mysql_config("libs_r")
|
||||||
client = "mysqlclient_r"
|
client = "mysqlclient_r"
|
||||||
|
if not libs:
|
||||||
|
libs = mysql_config("libs")
|
||||||
|
client = "mysqlclient"
|
||||||
else:
|
else:
|
||||||
libs = mysql_config("libs")
|
libs = mysql_config("libs")
|
||||||
client = "mysqlclient"
|
client = "mysqlclient"
|
||||||
|
Reference in New Issue
Block a user