mirror of
https://github.com/google/liblc3.git
synced 2026-06-13 06:12:27 +00:00
fix compile error with msvc 17
This commit is contained in:
+5
-2
@@ -18,10 +18,13 @@ project('lc3', 'c',
|
||||
meson_version: '>= 0.47.0',
|
||||
default_options: ['b_lto=true'])
|
||||
|
||||
add_project_arguments('-ffast-math', language: 'c')
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
if cc.get_id() != 'msvc'
|
||||
add_project_arguments('-ffast-math', language: 'c')
|
||||
endif
|
||||
|
||||
|
||||
m_dep = cc.find_library('m', required: false)
|
||||
|
||||
subdir('src')
|
||||
|
||||
Reference in New Issue
Block a user