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:
parent
7d6f78182b
commit
8c2709a1c6
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user