[libdazzle: 2/7] build: dllexport must also be set for clang-cl
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle: 2/7] build: dllexport must also be set for clang-cl
- Date: Sun, 27 Jun 2021 17:09:59 +0000 (UTC)
commit be092c50cc2aec811ae703de7f7f5781de5291e9
Author: Tom Schoonjans <Tom Schoonjans rfi ac uk>
Date: Sun Jun 27 06:47:33 2021 +0100
build: dllexport must also be set for clang-cl
meson.build | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 67c6db7..db9ebca 100644
--- a/meson.build
+++ b/meson.build
@@ -122,7 +122,7 @@ hidden_visibility_args = []
if get_option('default_library') != 'static'
if host_machine.system() == 'windows'
config_h.set('DLL_EXPORT', true)
- if cc.get_id() == 'msvc'
+ if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
config_h.set('_DZL_EXTERN', '__declspec(dllexport) extern')
elif cc.has_argument('-fvisibility=hidden')
config_h.set('_DZL_EXTERN', '__attribute__((visibility("default"))) __declspec(dllexport) extern')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]