mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 11:52:12 +01:00
[meta] use c++latest only for old versions of MSVC
c++latest is only needed for c++17 features when the compiler is before MSVC 15.3
This commit is contained in:
parent
33b0d4c991
commit
3835230ce5
10
meson.build
10
meson.build
@ -5,16 +5,12 @@ cpu_family = target_machine.cpu_family()
|
||||
add_project_arguments('-DNOMINMAX', language : 'cpp')
|
||||
|
||||
dxvk_compiler = meson.get_compiler('cpp')
|
||||
if dxvk_compiler.get_id() == 'msvc'
|
||||
dxvk_msvc=dxvk_compiler.get_id() == 'msvc'
|
||||
# c++17 was added in 15.3, older version needs c++latest
|
||||
if dxvk_compiler.get_id() == 'msvc' and dxvk_compiler.version().version_compare('<15.3')
|
||||
dxvk_cpp_std='c++latest'
|
||||
dxvk_msvc=true
|
||||
else
|
||||
dxvk_cpp_std='c++17'
|
||||
dxvk_msvc=false
|
||||
endif
|
||||
|
||||
if dxvk_compiler.get_id() == 'msvc'
|
||||
add_project_arguments('/std:' + dxvk_cpp_std, language : 'cpp')
|
||||
endif
|
||||
|
||||
dxvk_include_path = include_directories('./include')
|
||||
|
Loading…
x
Reference in New Issue
Block a user