meson: enable cplugins on Windows

Fixes: #12185
This commit is contained in:
Kacper Michajłow 2023-08-17 16:21:08 +02:00 committed by Dudemanguy
parent eab3842d8b
commit ec4683baa0
1 changed files with 2 additions and 2 deletions

View File

@ -338,11 +338,11 @@ if features['libdl']
endif
cplugins = get_option('cplugins').require(
features['libdl'] and not win32 and cc.has_link_argument('-rdynamic'),
win32 or (features['libdl'] and cc.has_link_argument('-rdynamic')),
error_message: 'cplugins not supported by the os or compiler!',
)
features += {'cplugins': cplugins.allowed()}
if features['cplugins']
if features['cplugins'] and not win32
link_flags += '-rdynamic'
endif