1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-30 20:52:11 +01:00

Changed visibility of the winelib build to behave more like MinGW

This commit is contained in:
Entryhazard 2019-05-13 02:37:02 +02:00 committed by Philip Rebohle
parent 7d6f78182b
commit 8c2709a1c6
3 changed files with 7 additions and 5 deletions

View File

@ -7,8 +7,8 @@ strip = 'strip'
[properties]
needs_exe_wrapper = true
c_args=['-m32', '-msse', '-msse2']
cpp_args=['-m32', '--no-gnu-unique', '-msse', '-msse2']
c_args=['-m32', '-msse', '-msse2', '-fvisibility=hidden']
cpp_args=['-m32', '--no-gnu-unique', '-msse', '-msse2', '-fvisibility=hidden', '-fvisibility-inlines-hidden']
cpp_link_args=['-m32', '-mwindows']
[host_machine]

View File

@ -7,8 +7,8 @@ strip = 'strip'
[properties]
needs_exe_wrapper = true
c_args=['-m64']
cpp_args=['-m64', '--no-gnu-unique']
c_args=['-m64', '-fvisibility=hidden']
cpp_args=['-m64', '--no-gnu-unique', '-fvisibility=hidden', '-fvisibility-inlines-hidden']
cpp_link_args=['-m64', '-mwindows']
[host_machine]

View File

@ -1,7 +1,9 @@
#pragma once
//for some reason we need to specify __declspec(dllexport) for MinGW
#if defined(_MSC_VER) || defined(__WINE__)
#if defined(__WINE__)
#define DLLEXPORT __attribute__((visibility("default")))
#elif defined(_MSC_VER)
#define DLLEXPORT
#else
#define DLLEXPORT __declspec(dllexport)